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-16 13:58:27 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-11-16 13:58:27 +0000
commite27e2d8b2a65e1476b275bd35a1148253434f8f3 (patch)
tree192b2c461d13e467dc980922c89cdcbe4210922a /src/game/client/gameclient.cpp
parent8769ee1b047b5b02d788f8d76ec2ce22aa224e96 (diff)
downloadzcatch-e27e2d8b2a65e1476b275bd35a1148253434f8f3.tar.gz
zcatch-e27e2d8b2a65e1476b275bd35a1148253434f8f3.zip
fixed server side demo recording and some possible crashes with incorrect demos
Diffstat (limited to 'src/game/client/gameclient.cpp')
-rw-r--r--src/game/client/gameclient.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index bc77798a..4ee92460 100644
--- a/src/game/client/gameclient.cpp
+++ b/src/game/client/gameclient.cpp
@@ -620,6 +620,8 @@ void GAMECLIENT::on_snapshot()
 			local_character_pos = vec2(snap.local_character->x, snap.local_character->y);
 		}
 	}
+	else
+		snap.spectate = true;
 
 	// update render info
 	for(int i = 0; i < MAX_CLIENTS; i++)