mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-10 12:46:44 +00:00
fixed counting from -1 in batsAfraid (not sure why it was like that?)
This commit is contained in:
parent
f664e8fbce
commit
f2e9b371ff
@ -340,7 +340,7 @@ EX bool wantsToStay(eMonster m) {
|
||||
|
||||
EX bool batsAfraid(cell *c) {
|
||||
// bats
|
||||
for(int i=-1; i<isize(targets); i++)
|
||||
for(int i=0; i<isize(targets); i++)
|
||||
if(c == targets[i] || isNeighbor(c, targets[i])) {
|
||||
if(!targets[i]->monst && invismove) continue;
|
||||
bool enear = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user