From 9ff8fef0ae68ec8fe401bd6cb3dc6c89f732faf7 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Mon, 5 Apr 2010 19:46:30 +0000 Subject: * When a buildable is killed by the egg spawn bbox hax (building something too close to an egg), attribute that death to the builder so the points are not queued. (thanks CU|Ams) --- src/game/g_buildable.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 94a3c208..0ec5f65c 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -841,7 +841,11 @@ void ASpawn_Think( gentity_t *self ) // If it's part of the map, kill self. if( ent->s.eType == ET_BUILDABLE ) { - G_Damage( ent, NULL, NULL, NULL, NULL, 10000, 0, MOD_SUICIDE ); + if( ent->builtBy >= 0 ) // don't queue the bp from this + G_Damage( ent, NULL, g_entities + ent->builtBy, NULL, NULL, 10000, 0, MOD_SUICIDE ); + else + G_Damage( ent, NULL, NULL, NULL, NULL, 10000, 0, MOD_SUICIDE ); + G_SetBuildableAnim( self, BANIM_SPAWN1, qtrue ); } else if( ent->s.number == ENTITYNUM_WORLD || ent->s.eType == ET_MOVER ) -- cgit