]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/changelevel.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / changelevel.qc
index 8e5c31bfea8a43ec01ea5b1ac53c4d0933e8cf0a..8dc694e621e918e8e5a8049736f608f02da3950b 100644 (file)
@@ -4,7 +4,7 @@
 
 
 void spawnfunc_target_changelevel_use()
-{
+{SELFPARAM();
        if(self.spawnflags & 2)
        {
                // simply don't react if a non-player triggers it
@@ -36,7 +36,7 @@ void spawnfunc_target_changelevel_use()
 }
 
 void spawnfunc_target_changelevel()
-{
+{SELFPARAM();
        self.use = spawnfunc_target_changelevel_use;
 
        if(!self.count) { self.count = 0.7; }