]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile when fancy pathing is enabled, and fix an intrusive list warning when...
authorMario <mario@smbclan.net>
Sat, 24 Jun 2017 02:15:17 +0000 (12:15 +1000)
committerMario <mario@smbclan.net>
Sat, 24 Jun 2017 02:15:17 +0000 (12:15 +1000)
qcsrc/common/turrets/checkpoint.qc
qcsrc/common/turrets/sv_turrets.qh
qcsrc/common/turrets/turret/ewheel.qc

index 6c246a75b83a5c8b6229f475c32c82bd173f1556..d9a20dc97c81d52104604e612e0d59c1b27ded74 100644 (file)
@@ -12,8 +12,6 @@
 #define checkpoint_cache_to   selected_player
 */
 
-.entity pathgoal;
-
 /*
 entity path_makeorcache(entity forwho,entity start, entity end)
 {
index 62759c058f3df63b37713919baf4f55a9c8314ee..edd06bd6db0f846bb793f1d950dbdfd7f4eaa529 100644 (file)
@@ -94,6 +94,8 @@ bool turret_initialize(entity this, Turret tur);
 
 .entity pathcurrent;
 
+.entity pathgoal;
+
 float turret_count;
 
 // debugging
index cf53508b6f63adca3314782182b8739c9bba5b17..fd85e68decfac5a33accfbb5e001be40d9a75111 100644 (file)
@@ -198,8 +198,9 @@ METHOD(EWheel, tr_setup, void(EWheel this, entity it))
 
     it.iscreature                              = true;
     it.teleportable                    = TELEPORT_NORMAL;
-    it.damagedbycontents               = true;
-    IL_PUSH(g_damagedbycontents, it);
+    if(!it.damagedbycontents)
+        IL_PUSH(g_damagedbycontents, it);
+    it.damagedbycontents        = true;
     set_movetype(it, MOVETYPE_WALK);
     it.solid                                   = SOLID_SLIDEBOX;
     it.takedamage                              = DAMAGE_AIM;