U550 - grid bug travel

when travelling and polymorphed into a grid bug, don't move diagonally.
This commit is contained in:
cohrs
2003-07-30 06:02:13 +00:00
parent 3300cfc737
commit 4566de6ac0
2 changed files with 4 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ typos fixed in data.base
add looting freehand() check to able_to_loot() to prevent opening container
only to be told that you can't loot anything
Schroedinger's Cat could be placed at wrong location when its box is carried
travel while polymorphed into a grid bug should not move diagonally
Platform- and/or Interface-Specific Fixes

View File

@@ -553,6 +553,9 @@ int mode;
register struct rm *tmpr = &levl[x][y];
register struct rm *ust;
/* no diagonal movement for grid bugs */
if (dx && dy && u.umonnum == PM_GRID_BUG) return FALSE;
/*
* Check for physical obstacles. First, the place we are going.
*/