From 3bfa39ecf38c83161b38e6980631e025783f9c71 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 21 Apr 2011 19:12:43 +0800 Subject: [PATCH] Fix crash when setting fan direction with caps lock on --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index e697f2444..318dac1ce 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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;