Fixed fire.sp cvars that were using timebomb stuff.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401870
This commit is contained in:
Michael McKoy 2008-01-27 16:32:47 +00:00
parent a6af8e7718
commit 4ebcb623b4
2 changed files with 4 additions and 11 deletions

View File

@ -51,7 +51,7 @@ public Plugin:myinfo =
// Set any of these to 0 and recompile to completely disable those commands
// -------------------------------------------------------------------------------
#define BEACON 1
#define TIMEBOMB 0
#define TIMEBOMB 1
#define FIRE 1
#define ICE 1
#define GRAVITY 1
@ -64,13 +64,6 @@ public Plugin:myinfo =
#define CASH 1
// -------------------------------------------------------------------------------
/**
* Fire requires timebomb
*/
#if TIMEBOMB == 0 && FIRE == 1
#error "FIRE requires TIMEBOMB"
#endif
new Handle:hTopMenu = INVALID_HANDLE;
// Sounds

View File

@ -190,7 +190,7 @@ public Action:Timer_FireBomb(Handle:timer, any:client)
if (GetConVarInt(g_FireBombMode) > 0)
{
new teamOnly = ((GetConVarInt(g_TimeBombMode) == 1) ? true : false);
new teamOnly = ((GetConVarInt(g_FireBombMode) == 1) ? true : false);
new maxClients = GetMaxClients();
for (new i = 1; i < maxClients; i++)
@ -216,7 +216,7 @@ public Action:Timer_FireBomb(Handle:timer, any:client)
}
new Float:duration = GetConVarFloat(g_BurnDuration);
duration *= (GetConVarFloat(g_TimeBombRadius) - distance) / GetConVarFloat(g_TimeBombRadius);
duration *= (GetConVarFloat(g_FireBombRadius) - distance) / GetConVarFloat(g_FireBombRadius);
IgniteEntity(i, duration);
}