mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-20 16:37:40 +00:00
removed function dirfromto as it was equal to neighborId
This commit is contained in:
2
game.cpp
2
game.cpp
@@ -835,7 +835,7 @@ bool ghostmove(eMonster m, cell* to, cell* from) {
|
||||
|
||||
bool slimepassable(cell *w, cell *c) {
|
||||
if(w == c || !c) return true;
|
||||
int u = dirfromto(c, w);
|
||||
int u = neighborId(c, w);
|
||||
if(nonAdjacent(w,c)) return false;
|
||||
if(isPlayerOn(w)) return true;
|
||||
int group = slimegroup(c);
|
||||
|
Reference in New Issue
Block a user