From: Mario Date: Mon, 6 Apr 2015 15:24:56 +0000 (+1000) Subject: Make spawnflags & 1 act as noalign for buffs (matching old powerups/items) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d6d00982ca245ed63650b3a392a6f8f88511e42e;p=xonotic%2Fxonotic-data.pk3dir.git Make spawnflags & 1 act as noalign for buffs (matching old powerups/items) --- diff --git a/qcsrc/server/mutators/mutator_buffs.qc b/qcsrc/server/mutators/mutator_buffs.qc index a0a8f91a5..3c1be7322 100644 --- a/qcsrc/server/mutators/mutator_buffs.qc +++ b/qcsrc/server/mutators/mutator_buffs.qc @@ -373,6 +373,9 @@ void buff_Init(entity ent) self.buff_active = !self.buff_activetime; self.pflags = PFLAGS_FULLDYNAMIC; + if(self.spawnflags & 1) + self.noalign = true; + if(self.noalign) self.movetype = MOVETYPE_NONE; // reset by random location @@ -401,7 +404,7 @@ void buff_SpawnReplacement(entity ent, entity old) { setorigin(ent, old.origin); ent.angles = old.angles; - ent.noalign = old.noalign; + ent.noalign = (old.noalign || (old.spawnflags & 1)); buff_Init(ent); }