summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-08-03 00:57:31 +0000
committerTim Angus <tim@ngus.net>2005-08-03 00:57:31 +0000
commite645491f02fbd53a4d466fd34df798b5955ba48e (patch)
tree946fb5e26e832c37663986a1f567aad2434b8309 /src/game/g_buildable.c
parent91217e0614b92948cbaa1dfc62a8f9a80a81a3fe (diff)
* Weapon switch forced when buying a weapon/ammo
* Fixed a bug where getting killed by certain buildables reduced your score
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 57480191..47815cb5 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -527,7 +527,7 @@ Called when an alien spawn dies
*/
void ASpawn_Melt( gentity_t *self )
{
- G_SelectiveRadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_SelectiveRadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath, PTE_ALIENS );
//start creep recession
@@ -566,7 +566,7 @@ void ASpawn_Blast( gentity_t *self )
VectorCopy( self->s.origin2, dir );
//do a bit of radius damage
- G_SelectiveRadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_SelectiveRadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath, PTE_ALIENS );
//pretty events and item cleanup
@@ -777,7 +777,7 @@ void ABarricade_Blast( gentity_t *self )
VectorCopy( self->s.origin2, dir );
//do a bit of radius damage
- G_SelectiveRadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_SelectiveRadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath, PTE_ALIENS );
//pretty events and item cleanup
@@ -870,7 +870,7 @@ void AAcidTube_Damage( gentity_t *self )
}
//do some damage
- G_SelectiveRadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_SelectiveRadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath, PTE_ALIENS );
}
@@ -1185,7 +1185,7 @@ void AHovel_Die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
VectorCopy( self->s.origin2, dir );
//do a bit of radius damage
- G_SelectiveRadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_SelectiveRadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath, PTE_ALIENS );
//pretty events and item cleanup
@@ -1472,7 +1472,7 @@ void HRpt_Think( gentity_t *self )
if( ent->s.eType != ET_BUILDABLE )
continue;
- if( ent->s.modelindex == BA_H_REACTOR )
+ if( ent->s.modelindex == BA_H_REACTOR && ent->spawned )
reactor = qtrue;
}
}
@@ -2143,7 +2143,7 @@ void HSpawn_Blast( gentity_t *self )
self->timestamp = level.time;
//do some radius damage
- G_RadiusDamage( self->s.pos.trBase, self->parent, self->splashDamage,
+ G_RadiusDamage( self->s.pos.trBase, self, self->splashDamage,
self->splashRadius, self, self->splashMethodOfDeath );
self->think = freeBuildable;