forked from UNLOZE/sm-plugins
entWatch4: fix 1 second cooldown delay?
This commit is contained in:
@@ -112,9 +112,9 @@ public Action OnDisplayHUD(Handle timer)
|
||||
{
|
||||
case MODE_COOLDOWN:
|
||||
{
|
||||
if (item.iTimeReady > RoundToCeil(GetEngineTime()))
|
||||
if (item.flTimeReady > GetEngineTime())
|
||||
{
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, item.iTimeReady - RoundToCeil(GetEngineTime()), item.iClient);
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, RoundToCeil(item.flTimeReady - GetEngineTime()), item.iClient);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -136,9 +136,9 @@ public Action OnDisplayHUD(Handle timer)
|
||||
{
|
||||
if (item.iTimesUsed < item.dConfig.iMaxUses)
|
||||
{
|
||||
if (item.iTimeReady > RoundToCeil(GetEngineTime()))
|
||||
if (item.flTimeReady > GetEngineTime())
|
||||
{
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, item.iTimeReady - RoundToCeil(GetEngineTime()), item.iClient);
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, RoundToCeil(item.flTimeReady - GetEngineTime()), item.iClient);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -152,9 +152,9 @@ public Action OnDisplayHUD(Handle timer)
|
||||
}
|
||||
case MODE_COOLDOWNCHARGES:
|
||||
{
|
||||
if (item.iTimeReady > RoundToCeil(GetEngineTime()))
|
||||
if (item.flTimeReady > GetEngineTime())
|
||||
{
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, item.iTimeReady - RoundToCeil(GetEngineTime()), item.iClient);
|
||||
Format(sLine, sizeof(sLine), "%s [%d]: %N", sShort, RoundToCeil(item.flTimeReady - GetEngineTime()), item.iClient);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user