summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-07-15 09:09:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-07-24 12:07:15 (GMT)
commitae9fca86ee7dd1ea2a781dee6f2f4727ac094e2b (patch)
treee72c006344c4812c47d360896f71134d0f728dc4
parentf8d60b14d269f486a11a8f4d0db57791e06a0409 (diff)
downloadpowder-ae9fca86ee7dd1ea2a781dee6f2f4727ac094e2b.zip
powder-ae9fca86ee7dd1ea2a781dee6f2f4727ac094e2b.tar.gz
Update gravity mask when deleting gravity wall
-rw-r--r--src/powder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 8cdd84c..90438f8 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;
}
}