]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bad use of w_shotorg
authorMario <mario.mario@y7mail.com>
Thu, 29 Aug 2013 11:44:54 +0000 (21:44 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 29 Aug 2013 11:44:54 +0000 (21:44 +1000)
qcsrc/common/monsters/monster/mage.qc

index 19d7b116d7273562d975c663fe505fd647408eb0..c37d38ff7b5e2caa8964ef50fe97b87a9927af53 100644 (file)
@@ -135,7 +135,7 @@ void mage_throw_itemgrenade()
        gren.movetype = MOVETYPE_BOUNCE;
        gren.solid = SOLID_TRIGGER;
        gren.projectiledeathtype = DEATH_MONSTER_MAGE;
-       setorigin(gren, w_shotorg);
+       setorigin(gren, CENTER_OR_VIEWOFS(self));
        setsize(gren, '-64 -64 -64', '64 64 64');
 
        gren.nextthink = time + MON_CVAR(mage, attack_grenade_lifetime);