Fixed errors and missing effects caused by missing sprites on L4D2 (bug 4512, r=fyren).

This commit is contained in:
Nicholas Hastings
2010-07-26 08:15:52 -04:00
parent 4ab3b15efd
commit 28cc96cfd0
4 changed files with 57 additions and 20 deletions
+5 -2
View File
@@ -134,8 +134,11 @@ public Action:Timer_FireBomb(Handle:timer, any:value)
}
else
{
TE_SetupExplosion(vec, g_ExplosionSprite, 0.1, 1, 0, GetConVarInt(g_Cvar_FireBombRadius), 5000);
TE_SendToAll();
if (g_ExplosionSprite > -1)
{
TE_SetupExplosion(vec, g_ExplosionSprite, 0.1, 1, 0, GetConVarInt(g_Cvar_FireBombRadius), 5000);
TE_SendToAll();
}
GetClientAbsOrigin(client, vec);
vec[2] += 10;