]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a few syntax errors
authorRudolf Polzer <divverent@xonotic.org>
Mon, 17 Dec 2012 14:06:15 +0000 (15:06 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 17 Dec 2012 14:37:04 +0000 (15:37 +0100)
12 files changed:
qcsrc/client/Defs.qc
qcsrc/common/util.qh
qcsrc/dpdefs/csprogsdefs.qc
qcsrc/dpdefs/menudefs.qc
qcsrc/dpdefs/progsdefs.qc
qcsrc/server/antilag.qc
qcsrc/server/command/banning.qh
qcsrc/server/defs.qh
qcsrc/server/g_world.qc
qcsrc/server/mutators/base.qh
qcsrc/server/mutators/gamemode_ctf.qc
qcsrc/server/mutators/gamemode_ctf.qh

index 9bd8e8c8a35807e0bd5cab007646136a3159edbb..d65c517a300fdf5a48a8beeb86d001c978317b6f 100644 (file)
@@ -1,6 +1,3 @@
-#pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
-
-
 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
 //YOU HAVE BEEN WARNED.
index faa605f887598c0dba17c7a6d5ae99654eb8e409..1294f6968c8cce7c8d73cea9904f46cbd2673595 100644 (file)
@@ -45,7 +45,7 @@ string wordwrap(string s, float l);
 void wordwrap_sprint(string s, float l);
 #endif
 #endif
-void wordwrap_cb(string s, float l, void(string) callback)
+void wordwrap_cb(string s, float l, void(string) callback);
 
 #ifndef SVQC
 string draw_currentSkin;
@@ -226,8 +226,8 @@ void WriteInt24_t(float dest, float val);
 #endif
 
 // the NULL function
-const var void func_null(void); FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(func_null)
-const var string string_null;
+var void func_null(void); FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(func_null)
+var string string_null;
 float float2range11(float f);
 float float2range01(float f);
 
@@ -308,7 +308,7 @@ float xdecode(string s);
 float lowestbit(float f);
 
 #ifdef CSQC
-entity ReadCSQCEntity()
+entity ReadCSQCEntity();
 #endif
 
 #ifndef MENUQC
index c9b9ce9cbc358056fa13b34169ac04c5c015559c..79d33fd3c2167931f75c3150e7d1e6ee9924a967 100644 (file)
@@ -335,7 +335,7 @@ void(entity e, vector o) setorigin = #2;
 void(entity e, string m) setmodel = #3;
 void(entity e, vector min, vector max) setsize = #4;
 
-void() break = #6;
+void() break_builtin = #6;
 float() random = #7;
 void(entity e, float chan, string samp) sound = #8;
 vector(vector v) normalize = #9;
index c1198746171f79dd03925f9c2bbac36261717732..8b2933a546b94e1a51439fec66bada709ba99648 100644 (file)
@@ -253,7 +253,7 @@ vector      stov(string s)  = #55;
 string strzone(string s)  = #56;
 void   strunzone(string s) = #57;
 
-float  tokenize(string s)  = #58
+float  tokenize(string s)  = #58;
 string argv(float n)  = #59;
 
 float  isserver(void)  = #60;
index 912c3ecabe18bee45be837d061a6a388f684376b..00e0d31b21d450ae116c4b6412e328904c2b2686 100644 (file)
@@ -402,7 +402,7 @@ void(entity e, vector o) setorigin  = #2;
 void(entity e, string m) setmodel      = #3;           // set movetype and solid first
 void(entity e, vector min, vector max) setsize = #4;
 // #5 was removed
-void() break                                           = #6;
+void() break_builtin                                           = #6;
 float() random                                         = #7;           // returns 0 - 1
 void(entity e, float chan, string samp, float vol, float atten) sound = #8;
 vector(vector v) normalize                     = #9;
index 73025f1f61004ed50996fc1dfa692aafac943895..5b10ab50b6f69a289f97dbea8bc18a9bf0e45cef 100644 (file)
@@ -1,18 +1,12 @@
 #define ANTILAG_MAX_ORIGINS 64
-.vector antilag_origins[ANTILAG_MAX_ORIGINS];
-.float antilag_times[ANTILAG_MAX_ORIGINS];
+.vector antilag_origins[ANTILAG_MAX_ORIGINS]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(antilag_origins);
+.float antilag_times[ANTILAG_MAX_ORIGINS]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(antilag_times);
 .float antilag_index;
 .vector antilag_saved_origin;
 .float antilag_takenback;
 
 .float antilag_debug;
 
-void antilag_dummy()
-{
-       self.antilag_times = 0;
-       self.antilag_origins = '0 0 0';
-}
-
 void antilag_record(entity e, float t)
 {
     if (e.vehicle && e.vehicle.vehicle_flags == VHF_PLAYERSLOT)
index 8e3ecb7ba0369ab674ac56ccc2198c9bf01c11a6..8c71af1793bcb92eab965927e6ce9d53813920ef 100644 (file)
@@ -12,4 +12,4 @@ float Ban_Insert(string ip, float bantime, string reason, float dosync);
 float Ban_Delete(float i);
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
-void BanCommand_macro_write_aliases(float fh)
+void BanCommand_macro_write_aliases(float fh);
index d7772e5090d0fda499eb14eee8f3544b298bf007..e0a29d87a7b86d3198edfa4087ca273908736c31 100644 (file)
@@ -473,7 +473,7 @@ void GlobalSound(string samplestring, float channel, float voicetype);
 void FakeGlobalSound(string samplestring, float channel, float voicetype);
 void VoiceMessage(string type, string message);
 float GetPlayerSoundSampleField_notFound;
-.string GetVoiceMessageSampleField(string type)
+.string GetVoiceMessageSampleField(string type);
 
 // autotaunt system
 .float cvar_cl_autotaunt;
index a41389a4fd2803ceea69176fa6f9ed0f9964c449..dc615afb6285b116009ef39c1372bd0e3016f216 100644 (file)
@@ -58,7 +58,7 @@ float world_initialized;
 string GetMapname();
 string GetGametype();
 void GotoNextMap(float reinit);
-void ShuffleMaplist()
+void ShuffleMaplist();
 float(float reinit) DoNextMapOverride;
 
 void SetDefaultAlpha()
@@ -2029,7 +2029,6 @@ float WinningCondition_Race(float fraglimit)
                return WINNING_STARTSUDDENDEATHOVERTIME;
        else
                return WINNING_NEVER;
-       return wc;
 }
 
 float WinningCondition_QualifyingThenRace(float limit)
index 29a8e4e0b5602d9fa0f645a2b5de7a1e4bb437d0..1b6cea8fc4501ee47eaa8b26089926d927544878 100644 (file)
@@ -6,7 +6,7 @@
 float CallbackChain_ReturnValue; // read-only field of the current return value
 
 entity CallbackChain_New(string name);
-float CallbackChain_Add(entity cb, float() func, float order)
+float CallbackChain_Add(entity cb, float() func, float order);
 float CallbackChain_Remove(entity cb, float() func);
 // a callback function is like this:
 // float mycallback(entity me)
index f453cc22ad727ea81b78f276ff3958aed207bde2..b9bcd5ba097eb8d75d12bbf40502c5b83ea5b385 100644 (file)
@@ -2197,13 +2197,11 @@ MUTATOR_DEFINITION(gamemode_ctf)
        {
                if(time > 1) // game loads at time 1
                        error("This is a game type and it cannot be added at runtime.");
-               g_ctf = 1;
                ctf_Initialize();
        }
 
        MUTATOR_ONREMOVE
        {
-               g_ctf = 0;
                error("This is a game type and it cannot be removed at runtime.");
        }
 
index b6ca033bb3284d34b0e57847e022b21d3a1ea223..1c5898bd1ad99afc1e3d773984620de82a2f288d 100644 (file)
@@ -1,7 +1,7 @@
 // these are needed since mutators are compiled last
 
 // used in cheats.qc
-void ctf_RespawnFlag(entity flag)
+void ctf_RespawnFlag(entity flag);
 
 // score rule declarations
 #define ST_CTF_CAPS 1