]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't compile the ctf example
authorRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:11:26 +0000 (21:11 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:11:26 +0000 (21:11 +0100)
qcsrc/client/bgmscript.qc
qcsrc/client/ctf.qc
qcsrc/client/main.qh
qcsrc/i18n-guide.txt

index 43255da5849ebf61752f43fb10b1ae5fd5f36a78..353c5419abd055c12e626ec34451d2099c7cac54 100644 (file)
@@ -131,7 +131,7 @@ void BGMScript_InitEntity(entity e)
                e.bgmscriptline = e.bgmscriptline0 = i;
                if(i >= bgmscriptbufsize)
                {
                e.bgmscriptline = e.bgmscriptline0 = i;
                if(i >= bgmscriptbufsize)
                {
-                       print("ERROR: bgmscript does not define ", e.bgmscript, "\n");
+                       print(sprintf("ERROR: bgmscript does not define %s\n", e.bgmscript));
                        e.bgmscript = "";
                }
        }
                        e.bgmscript = "";
                }
        }
@@ -182,7 +182,6 @@ float BGMScript(entity e)
 
        if(bgmtime < e.bgmscripttime)
        {
 
        if(bgmtime < e.bgmscripttime)
        {
-               //print("reset ", e.bgmscript, "\n");
                amp = GetCurrentAmplitude(e, e.bgmscripttime - e.bgmscriptstatetime + drawframetime);
 
                e.bgmscriptline = e.bgmscriptline0;
                amp = GetCurrentAmplitude(e, e.bgmscripttime - e.bgmscriptstatetime + drawframetime);
 
                e.bgmscriptline = e.bgmscriptline0;
index 0a5375f51dcf1c22cf278ec4114edfa0c7585100..651a8e62bc8686cb862b1bbd9f821178a26381fc 100644 (file)
@@ -1,4 +1,5 @@
-//include "main.qh"
+#ifdef CTF_EXAMPLE
+
 // NOTE: This file contains lots of debugging stuff
 // it is not really used... can be seen as another sample...
 
 // NOTE: This file contains lots of debugging stuff
 // it is not really used... can be seen as another sample...
 
@@ -214,3 +215,5 @@ void() ctf_view =
                drawstring('0 0 0', "Awaiting orders...", '8 8 0', '1 1 1', 0.5, 0);
        }
 };
                drawstring('0 0 0', "Awaiting orders...", '8 8 0', '1 1 1', 0.5, 0);
        }
 };
+
+#endif
index 364e5a999fb5768bc4043c4d9671d470b3c1b002..970a1aa0b73d8fc223884e19518ff8a12ced06c6 100644 (file)
@@ -20,8 +20,10 @@ var float(float bInputType, float nPrimary, float nSecondary) menu_action;
 // --------------------------------------------------------------------------
 // CTF
 
 // --------------------------------------------------------------------------
 // CTF
 
+#ifdef CTF_EXAMPLE
 void() ctf_menu_show;
 string ctf_temp_1;
 void() ctf_menu_show;
 string ctf_temp_1;
+#endif
 
 // --------------------------------------------------------------------------
 // Onslaught
 
 // --------------------------------------------------------------------------
 // Onslaught
index 4e6d70cc56743a92b4e95a1ded7c8819182d6261..87d4ff5186059b8807ff18b626dd10a38eae0c53 100644 (file)
@@ -29,7 +29,6 @@ Unresolved TODO:
 
 - translated campaigns
 
 
 - translated campaigns
 
-client/bgmscript.qc
 client/casings.qc
 client/ctf.qc
 client/damage.qc
 client/casings.qc
 client/ctf.qc
 client/damage.qc