mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-16 10:14:48 +00:00
general_barrier:: fixed holes
This commit is contained in:
parent
917e42e4a5
commit
d8e13ed88d
@ -169,7 +169,7 @@ EX bool general_barrier_advance(cellwalker& bb, int& dir, eLand& l1, eLand& l2,
|
|||||||
bb1 -= dir;
|
bb1 -= dir;
|
||||||
for(int i=1; i<q; i++) {
|
for(int i=1; i<q; i++) {
|
||||||
int d = get_valence(bb1, -dir, ok);
|
int d = get_valence(bb1, -dir, ok);
|
||||||
surround_by(setit, bb1, -dir, 2, d, l1, false, ok);
|
surround_by(setit, bb1, -dir, 1, d, l1, false, ok);
|
||||||
bb1-=dir;
|
bb1-=dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ EX bool general_barrier_advance(cellwalker& bb, int& dir, eLand& l1, eLand& l2,
|
|||||||
bb += dir;
|
bb += dir;
|
||||||
for(int i=1; i<q; i++) {
|
for(int i=1; i<q; i++) {
|
||||||
int d = get_valence(bb, dir, ok);
|
int d = get_valence(bb, dir, ok);
|
||||||
surround_by(setit, bb, dir, 2, d, l2, true, ok);
|
surround_by(setit, bb, dir, 1, d, l2, true, ok);
|
||||||
bb+=dir;
|
bb+=dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user