From a294f94b8491ec0f457cea7e4d9d6c28f60f5b2c Mon Sep 17 00:00:00 2001 From: savagex Date: Fri, 11 Nov 2005 21:49:04 +0000 Subject: [PATCH] disable HUD hiding when in observer mode as the HUD is not restored correctly under all circumstances (e.g. when loosing connection or on restart) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@578 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/gamec/cl_client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/qcsrc/gamec/cl_client.c b/data/qcsrc/gamec/cl_client.c index e956fbef0..75e4c82a1 100644 --- a/data/qcsrc/gamec/cl_client.c +++ b/data/qcsrc/gamec/cl_client.c @@ -209,7 +209,7 @@ void PutObserverInServer (void) self.weaponentity = world; self.killcount = -666; self.frags = -666; - stuffcmd(self, "set viewsize 120 \n"); + //stuffcmd(self, "set viewsize 120 \n"); bprint (strcat("^4", self.netname, " is spectating now\n")); } @@ -379,7 +379,7 @@ void PutClientInServer (void) CL_SpawnWeaponentity(); //stuffcmd(self, "chase_active 0"); - stuffcmd(self, "set viewsize $tmpviewsize \n"); + //stuffcmd(self, "set viewsize $tmpviewsize \n"); } else if(self.classname == "observer") { PutObserverInServer (); } @@ -441,7 +441,7 @@ void ClientConnect (void) self.classname = "player"; } - stuffcmd(self, "set tmpviewsize $viewsize \n"); + //stuffcmd(self, "set tmpviewsize $viewsize \n"); bprint ("^4",self.netname); bprint (" connected"); @@ -498,7 +498,7 @@ void ClientDisconnect (void) self.chatbubbleentity = world; } DropAllRunes(self); - stuffcmd(self, "set viewsize $tmpviewsize \n"); + //stuffcmd(self, "set viewsize $tmpviewsize \n"); } .float buttonchat; @@ -805,7 +805,7 @@ float SpectateNext() { msg_entity = self; WriteByte(MSG_ONE, SVC_SETVIEW); WriteEntity(MSG_ONE, self.enemy); - stuffcmd(self, "set viewsize $tmpviewsize \n"); + //stuffcmd(self, "set viewsize $tmpviewsize \n"); SpectateUpdate(); return 1; } else { -- 2.39.2