]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
TEU uses teu.rc, not quake.rc
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Feb 2004 02:06:11 +0000 (02:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Feb 2004 02:06:11 +0000 (02:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3929 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 299ecad647d35f18df6ac0686fade1dcb23977de..c1657d10f933d862605f1534ba082550613fb133 100644 (file)
--- a/host.c
+++ b/host.c
@@ -879,7 +879,10 @@ void Host_Init (void)
        }
 
        // only cvars are executed when host_initialized == false
-       Cbuf_InsertText("exec quake.rc\n");
+       if (gamemode == GAME_TEU)
+               Cbuf_InsertText("exec teu.rc\n");
+       else
+               Cbuf_InsertText("exec quake.rc\n");
        Cbuf_Execute();
 
        host_initialized = true;
@@ -895,7 +898,10 @@ void Host_Init (void)
 
        // stuff it again so the first host frame will execute it again, this time
        // in its entirety
-       Cbuf_InsertText("exec quake.rc\n");
+       if (gamemode == GAME_TEU)
+               Cbuf_InsertText("exec teu.rc\n");
+       else
+               Cbuf_InsertText("exec quake.rc\n");
        Cbuf_Execute();
 }