]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix issue 192
authortzork <jakob_mg@hotmail.com>
Sun, 28 Nov 2010 08:24:03 +0000 (09:24 +0100)
committertzork <jakob_mg@hotmail.com>
Sun, 28 Nov 2010 08:24:03 +0000 (09:24 +0100)
qcsrc/server/tturrets/units/unit_ewheel.qc
qcsrc/server/tturrets/units/unit_walker.qc

index aff4c0aec907ad77cb2a5a9a2ee8d2001ef72f54..fa150df0a84e7254350a891c9a49e109a96a8bfe 100644 (file)
@@ -216,6 +216,10 @@ void ewheel_respawnhook()
 {
     entity e;
 
+    // Respawn is called & first spawn to, to set team. need to make sure we do not move the initial spawn.
+    if(self.movetype  != MOVETYPE_WALK)
+               return;
+               
     self.velocity = '0 0 0';
     self.enemy = world;
 
index 59aaf653de3750a80540b616fdd41ca5df20e081..3952dc16a407cf02f98270e732194c0d4317245d 100644 (file)
@@ -637,7 +637,11 @@ void walker_respawnhook()
     vector vtmp;
     entity e;
 
-    setorigin(self,self.wkr_spawn.origin);
+    // Respawn is called & first spawn to, to set team. need to make sure we do not move the initial spawn.
+    if(self.movetype  != MOVETYPE_WALK)
+               return;
+               
+    setorigin(self, self.wkr_spawn.origin);
 
     self.angles = self.wkr_spawn.angles;
     vtmp = self.wkr_spawn.origin;