Update gravity mask when deleting gravity wall

This commit is contained in:
jacksonmj 2011-07-15 17:09:23 +08:00 committed by Simon Robertshaw
parent f8d60b14d2
commit ae9fca86ee

View File

@ -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;
}
}