1
0
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:
Zeno Rogue
2019-08-10 00:08:16 +02:00
parent 986bf0ee9a
commit 245ee5878f
4 changed files with 8 additions and 15 deletions

View File

@@ -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);