Use symbolic name STONE for levl typ 0

This commit is contained in:
Pasi Kallinen
2016-10-07 15:43:27 +03:00
parent f95747e3ef
commit 2c9aac4f13
3 changed files with 4 additions and 4 deletions

View File

@@ -814,7 +814,7 @@ nextpos:
else
ny += dy;
while ((typ = (crm = &levl[nx][ny])->typ) != 0) {
while ((typ = (crm = &levl[nx][ny])->typ) != STONE) {
/* in view of the above we must have IS_WALL(typ) or typ == POOL */
/* must be a wall here */
if (isok(nx + nx - x, ny + ny - y) && !IS_POOL(typ)