]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/spawn.qc
#define use use1
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / spawn.qc
index f02b2962573700803eab808837a1661aa51f8fdd..74ac8fd99ad8899e6d556cbf9837929f0e2b2664 100644 (file)
@@ -292,10 +292,10 @@ void target_spawn_use(entity this, entity actor, entity trigger)
        }
 }
 
-void target_spawn_spawnfirst()
-{SELFPARAM();
-       entity act = self.target_spawn_activator;
-       if(self.spawnflags & 2)
+void target_spawn_spawnfirst(entity this)
+{
+       entity act = this.target_spawn_activator;
+       if(this.spawnflags & 2)
                target_spawn_use(this, act, NULL);
 }
 
@@ -330,7 +330,7 @@ void initialize_field_db()
 spawnfunc(target_spawn)
 {
        initialize_field_db();
-       self.use1 = target_spawn_use;
+       self.use = target_spawn_use;
        self.message = strzone(strreplace("'", "\"", self.message));
        self.target_spawn_id = ++target_spawn_count;
        InitializeEntity(self, target_spawn_spawnfirst, INITPRIO_LAST);