added fallback option to enemy movement when out of space

This commit is contained in:
2024-07-25 19:32:04 -04:00
parent 410b31c96a
commit 6c27a1510b

View File

@ -34,7 +34,9 @@ long_result enemy_base::act(level *lvl, character *pc, bool hostile) {
target = tmp;
}
if (target.x != BIG_NUMBER)
pos = target;
return {NOTHING, ""};
}