From ae9fca86ee7dd1ea2a781dee6f2f4727ac094e2b Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 15 Jul 2011 17:09:23 +0800 Subject: [PATCH] Update gravity mask when deleting gravity wall --- src/powder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/powder.c b/src/powder.c index 8cdd84c3a..90438f802 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2659,7 +2659,10 @@ int create_parts(int x, int y, int rx, int ry, int c) if (((sdl_mod & (KMOD_LALT) && sdl_mod & (KMOD_CTRL))|| ((sdl_mod & (KMOD_CAPS)) && b!=WL_FANHELPER) )) { if (bmap[j][i]==SLALT-100) + { b = 0; + if (SLALT==WL_GRAV) gravwl_timeout = 60; + } else continue; } @@ -2681,6 +2684,7 @@ int create_parts(int x, int y, int rx, int ry, int c) bmap[j][i] = WL_STREAM; continue; } + if (b==0 && bmap[j][i]==WL_GRAV) gravwl_timeout = 60; bmap[j][i] = b; } }