From ab7b6b4fcce4c50506b2f6285967b744ceff15f6 Mon Sep 17 00:00:00 2001 From: div0 Date: Wed, 28 Jun 2006 09:00:24 +0000 Subject: [PATCH] Allow client-side CD track overrides again git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1686 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_client.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index bd25eb1bc..b67a33e29 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -710,8 +710,8 @@ void ClientConnect (void) self.welcomemessage_time = time + cvar("welcome_message_time"); self.welcomemessage_time2 = 0; - //stuffcmd(self, strcat("exec maps/", mapname, ".cfg\n")); - // the client might not have that file yet! + // the client might not have his maps/%s.cfg file yet! + // so send the one from the server... fh = fopen(strcat("maps/", mapname, ".cfg"), FILE_READ); if(fh >= 0) { @@ -719,10 +719,12 @@ void ClientConnect (void) stuffcmd(self, strcat(s, "\n")); fclose(fh); } + // and then execute the client's so he can still override CD tracks + stuffcmd(self, strcat("exec maps/", mapname, ".cfg\n")); + // TODO: is this being used for anything else than cd tracks? // Remember: SVC_CDTRACK exists. Maybe it should be used. - // send prediction settings to the client stuffcmd(self, strcat("cl_movement_accelerate ", ftos(cvar("sv_accelerate")), "\n")); stuffcmd(self, strcat("cl_movement_friction ", ftos(cvar("sv_friction")), "\n")); -- 2.39.2