about summary refs log tree commit diff
path: root/src/game/client/gameclient.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-11-15 13:29:32 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-11-15 13:29:32 +0000
commit54429b70cfc57ada380af86127a941f3d20235f4 (patch)
tree2a8e25a85cd4027e7c8cafdb5533634119f2df59 /src/game/client/gameclient.cpp
parente3c4c01837d8adb5a82fc513a0db46c6521af282 (diff)
downloadzcatch-54429b70cfc57ada380af86127a941f3d20235f4.tar.gz
zcatch-54429b70cfc57ada380af86127a941f3d20235f4.zip
added some extra debugging information
Diffstat (limited to 'src/game/client/gameclient.cpp')
-rw-r--r--src/game/client/gameclient.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index dc5d4225..bc77798a 100644
--- a/src/game/client/gameclient.cpp
+++ b/src/game/client/gameclient.cpp
@@ -717,9 +717,11 @@ void GAMECLIENT::on_predict()
 	
 	if(config.debug && config.cl_predict && predicted_tick == client_predtick())
 	{
-		NETOBJ_CHARACTER_CORE before = {0}, now = {0};
+		NETOBJ_CHARACTER_CORE before = {0}, now = {0}, before_prev = {0}, now_prev = {0};
 		before_char.write(&before);
+		before_prev_char.write(&before_prev);
 		predicted_char.write(&now);
+		predicted_prev_char.write(&now_prev);
 
 		if(mem_comp(&before, &now, sizeof(NETOBJ_CHARACTER_CORE)) != 0)
 		{
@@ -727,7 +729,7 @@ void GAMECLIENT::on_predict()
 			for(unsigned i = 0; i < sizeof(NETOBJ_CHARACTER_CORE)/sizeof(int); i++)
 				if(((int *)&before)[i] != ((int *)&now)[i])
 				{
-					dbg_msg("", "\t%d %d %d", i, ((int *)&before)[i], ((int *)&now)[i]);
+					dbg_msg("", "\t%d %d %d  (%d %d)", i, ((int *)&before)[i], ((int *)&now)[i], ((int *)&before_prev)[i], ((int *)&now_prev)[i]);
 				}
 		}
 	}