From: cohrs Date: Wed, 30 Jul 2003 06:02:13 +0000 (+0000) Subject: U550 - grid bug travel X-Git-Tag: MOVE2GIT~1876 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4566de6ac0a09307a8ac898b1d7e54e59615f95a;p=nethack U550 - grid bug travel when travelling and polymorphed into a grid bug, don't move diagonally. --- diff --git a/doc/fixes34.2 b/doc/fixes34.2 index d6fa71517..137644702 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -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 diff --git a/src/hack.c b/src/hack.c index bea9d0ec9..bbc7da3e7 100644 --- a/src/hack.c +++ b/src/hack.c @@ -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. */