]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/magicear.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / magicear.qc
index f14b75c3124b983856400b620faf2af7dbc517ce..7ca85876c0bed9a44aeb4f4c4ea75d17a50162a7 100644 (file)
@@ -2,7 +2,7 @@
 float magicear_matched;
 float W_Tuba_HasPlayed(entity pl, string melody, float instrument, float ignorepitch, float mintempo, float maxtempo);
 string trigger_magicear_processmessage(entity ear, entity source, float teamsay, entity privatesay, string msgin)
-{
+{SELFPARAM();
        float domatch, dotrigger, matchstart, l;
        string s, msg;
        entity oldself;
@@ -166,7 +166,7 @@ string trigger_magicear_processmessage_forallears(entity source, float teamsay,
 }
 
 void spawnfunc_trigger_magicear()
-{
+{SELFPARAM();
        self.enemy = magicears;
        magicears = self;