about summary refs log tree commit diff
path: root/src/game/client/gameclient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/gameclient.hpp')
-rw-r--r--src/game/client/gameclient.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/client/gameclient.hpp b/src/game/client/gameclient.hpp
index dc3532a7..4b397e86 100644
--- a/src/game/client/gameclient.hpp
+++ b/src/game/client/gameclient.hpp
@@ -56,9 +56,26 @@ public:
 
 		const NETOBJ_PLAYER_INFO *player_infos[MAX_CLIENTS];
 		const NETOBJ_PLAYER_INFO *info_by_score[MAX_CLIENTS];
+		
+		int local_cid;
 		int num_players;
 		int team_size[2];
 		bool spectate;
+		
+		//
+		struct CHARACTERINFO
+		{
+			bool active;
+			
+			// snapshots
+			NETOBJ_CHARACTER prev;
+			NETOBJ_CHARACTER cur;
+			
+			// interpolated position
+			vec2 position;
+		};
+		
+		CHARACTERINFO characters[MAX_CLIENTS];
 	};
 
 	SNAPSTATE snap;