From: Giuseppe Bilotta Date: Mon, 8 Aug 2011 14:12:15 +0000 (+0200) Subject: Keys should be s32, not u32 X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=11be390110538eef2c362616ca960d4cd55c5810;p=zefram%2Fminetest%2Fminetest_engine.git Keys should be s32, not u32 At least two reasons for this: * activeKey is treated as signed (check for sign, assign -1, etc) * the ID retrieved from Irrlicht's events are signed --- diff --git a/src/guiKeyChangeMenu.h b/src/guiKeyChangeMenu.h index db86ab2d..dcca6b0b 100644 --- a/src/guiKeyChangeMenu.h +++ b/src/guiKeyChangeMenu.h @@ -114,20 +114,20 @@ private: gui::IGUIButton *dump; gui::IGUIButton *chat; - u32 activeKey; - u32 key_forward; - u32 key_backward; - u32 key_left; - u32 key_right; - u32 key_use; - u32 key_sneak; - u32 key_jump; - u32 key_inventory; - u32 key_fly; - u32 key_fast; - u32 key_range; - u32 key_chat; - u32 key_dump; + s32 activeKey; + s32 key_forward; + s32 key_backward; + s32 key_left; + s32 key_right; + s32 key_use; + s32 key_sneak; + s32 key_jump; + s32 key_inventory; + s32 key_fly; + s32 key_fast; + s32 key_range; + s32 key_chat; + s32 key_dump; }; #endif