mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-15 06:17:38 +00:00
fixed counting from -1 in batsAfraid (not sure why it was like that?)
This commit is contained in:
@@ -340,7 +340,7 @@ EX bool wantsToStay(eMonster m) {
|
|||||||
|
|
||||||
EX bool batsAfraid(cell *c) {
|
EX bool batsAfraid(cell *c) {
|
||||||
// bats
|
// 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(c == targets[i] || isNeighbor(c, targets[i])) {
|
||||||
if(!targets[i]->monst && invismove) continue;
|
if(!targets[i]->monst && invismove) continue;
|
||||||
bool enear = false;
|
bool enear = false;
|
||||||
|
Reference in New Issue
Block a user