]> granicus.if.org Git - nethack/commitdiff
U550 - grid bug travel
authorcohrs <cohrs>
Wed, 30 Jul 2003 06:02:13 +0000 (06:02 +0000)
committercohrs <cohrs>
Wed, 30 Jul 2003 06:02:13 +0000 (06:02 +0000)
when travelling and polymorphed into a grid bug, don't move diagonally.

doc/fixes34.2
src/hack.c

index d6fa715171921608c4b5ace054e394de85952151..137644702d6b5a3fdeefc214f5306ae268ed2425 100644 (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
index bea9d0ec955ac34f7babc116777812aee6414a17..bbc7da3e7304b81e2a848f741c76181d5219fa9b 100644 (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.
      */