about summary refs log tree commit diff
path: root/src/game/game_protocol.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 23:43:14 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 23:43:14 +0000
commitdf434e3163511936572a7f6e71e2abeb9738e3e7 (patch)
tree855bb93ca7bd6f69a44604191831da825721b908 /src/game/game_protocol.h
parenta1e1fb01eaf7aefa9bb5254893c4395c044f6dec (diff)
downloadzcatch-df434e3163511936572a7f6e71e2abeb9738e3e7.tar.gz
zcatch-df434e3163511936572a7f6e71e2abeb9738e3e7.zip
fixed more responsive input handling
Diffstat (limited to 'src/game/game_protocol.h')
-rw-r--r--src/game/game_protocol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/game_protocol.h b/src/game/game_protocol.h
index 56156e24..0300c88a 100644
--- a/src/game/game_protocol.h
+++ b/src/game/game_protocol.h
@@ -60,6 +60,11 @@ enum
 
 enum
 {
+	INPUT_STATE_MASK=0x1f,
+};
+
+enum
+{
 	STATE_UNKNOWN=0,
 	STATE_PLAYING,
 	STATE_IN_MENU,
@@ -82,9 +87,9 @@ struct player_input
 	int fire;
 	int hook;
 	int blink;
-	int activeweapon;
 	int state;
 	
+	int wanted_weapon;
 	int next_weapon;
 	int prev_weapon;
 };