Fix crash when setting fan direction with caps lock on

This commit is contained in:
jacksonmj 2011-04-21 19:12:43 +08:00 committed by Simon Robertshaw
parent f3b341c7b2
commit 3bfa39ecf3

View File

@ -2811,7 +2811,7 @@ int create_parts(int x, int y, int rx, int ry, int c)
{
i = ox;
j = oy;
if (((sdl_mod & (KMOD_LALT) && sdl_mod & (KMOD_SHIFT))|| sdl_mod & (KMOD_CAPS) ))
if (((sdl_mod & (KMOD_LALT) && sdl_mod & (KMOD_SHIFT))|| ((sdl_mod & (KMOD_CAPS)) && b!=WL_FANHELPER) ))
{
if (bmap[j][i]==SLALT-100)
b = 0;