]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #1810 generator doesn't show any explosion effect when it gets destroyed
authorterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:06:54 +0000 (17:06 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:06:54 +0000 (17:06 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index cbba9a9aaa87bc23d183b18b224f9fd508d91080..54ced2fb1a9a9634ce389f4730d78d4694334270 100644 (file)
@@ -149,7 +149,10 @@ void generator_construct(entity this, bool isnew)
        this.classname = "onslaught_generator";
 
        if(isnew)
+       {
                IL_PUSH(g_onsgenerators, this);
+               IL_PUSH(g_drawables, this);
+       }
 
        setorigin(this, this.origin);
        setmodel(this, MDL_ONS_GEN);
index 28fcaeb9d0ac19f95414f950b2eb1598772f4eee..d6606a370b74e6cc08fdd9a898e2f6a5a12d5766 100644 (file)
@@ -827,7 +827,7 @@ void ons_GeneratorDamage(entity this, entity inflictor, entity attacker, float d
        {
                if (this.isshielded)
                {
-                       // this is protected by a shield, so ignore the damage
+                       // generator is protected by a shield, so ignore the damage
                        if (time > this.pain_finished)
                                if (IS_PLAYER(attacker))
                                {