X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fturret%2Fplasma.qc;h=84496435634e0cf653e56ea4702ca6eb876bdb27;hp=97f5c5659721767a2c08a9e54d2ef5eade95949a;hb=d82eed5c84b40a8eb68d9bca12e40506c6c7b6d9;hpb=9d865b9e241eafebe0b458e52464fc4c51693351 diff --git a/qcsrc/common/turrets/turret/plasma.qc b/qcsrc/common/turrets/turret/plasma.qc index 97f5c5659..844964356 100644 --- a/qcsrc/common/turrets/turret/plasma.qc +++ b/qcsrc/common/turrets/turret/plasma.qc @@ -22,7 +22,7 @@ REGISTER_TURRET(PLASMA, NEW(PlasmaTurret)); #ifdef SVQC -spawnfunc(turret_plasma) { if (!turret_initialize(TUR_PLASMA)) remove(this); } +spawnfunc(turret_plasma) { if (!turret_initialize(this, TUR_PLASMA)) remove(this); } METHOD(PlasmaTurret, tr_attack, void(PlasmaTurret this, entity it)) { @@ -46,12 +46,11 @@ METHOD(PlasmaTurret, tr_attack, void(PlasmaTurret this, entity it)) } METHOD(PlasmaTurret, tr_think, void(PlasmaTurret thistur, entity it)) { - SELFPARAM(); - if (self.tur_head.frame != 0) - self.tur_head.frame = self.tur_head.frame + 1; + if (it.tur_head.frame != 0) + it.tur_head.frame = it.tur_head.frame + 1; - if (self.tur_head.frame > 5) - self.tur_head.frame = 0; + if (it.tur_head.frame > 5) + it.tur_head.frame = 0; } METHOD(PlasmaTurret, tr_setup, void(PlasmaTurret this, entity it)) {