aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-08 16:12:15 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-08 16:12:15 +0200
commit11be390110538eef2c362616ca960d4cd55c5810 (patch)
treecf9235ca456e2308d0741fec8762711a0dba2617
parentea26a9f5431b0efac4622bc4b0bdc0a69d44c2c6 (diff)
downloadminetest-11be390110538eef2c362616ca960d4cd55c5810.tar.gz
minetest-11be390110538eef2c362616ca960d4cd55c5810.tar.bz2
minetest-11be390110538eef2c362616ca960d4cd55c5810.zip
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
-rw-r--r--src/guiKeyChangeMenu.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/guiKeyChangeMenu.h b/src/guiKeyChangeMenu.h
index db86ab2d1..dcca6b0b6 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