From 11be390110538eef2c362616ca960d4cd55c5810 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 8 Aug 2011 16:12:15 +0200 Subject: [PATCH] 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 --- src/guiKeyChangeMenu.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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 -- 2.30.2