Unify getting terrain under drawbridge

This commit is contained in:
Pasi Kallinen
2015-04-27 22:15:23 +03:00
parent 0903df974f
commit 86dc5cf588
5 changed files with 19 additions and 21 deletions

View File

@@ -103,6 +103,18 @@ int x, y;
return FALSE;
}
schar
db_under_typ(mask)
int mask;
{
switch (mask & DB_UNDER) {
case DB_ICE: return ICE; break;
case DB_LAVA: return LAVAPOOL; break;
case DB_MOAT: return MOAT; break;
default: return STONE; break;
}
}
/*
* We want to know whether a wall (or a door) is the portcullis (passageway)
* of an eventual drawbridge.