expansion:: dfStart returns 0 if not mod allowed

This commit is contained in:
Zeno Rogue 2022-09-14 18:02:26 +02:00
parent 90669b6bb8
commit acc90b80b7
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ EX int curr_dist(cell *c) {
case dfPlayer:
return c->cpdist < INFD ? c->cpdist : celldistance(cwt.at, c);
case dfStart:
if(!mod_allowed()) return 0;
return celldist(c);
case dfWorld:
if(!mod_allowed() && !among(c->land, laOcean, laIvoryTower, laEndorian, laDungeon, laTemple, laWhirlpool, laCanvas))