forked from UNLOZE/sm-plugins
entWatch4: Make the internal wait a float instead.
Predator minigun became fucked otherwise.
This commit is contained in:
@@ -536,9 +536,9 @@ public Action OnButtonPress(int button, int client)
|
||||
{
|
||||
if (HasEntProp(button, Prop_Data, "m_flWait"))
|
||||
{
|
||||
if (item.iWaitTill < RoundToCeil(GetEngineTime()))
|
||||
if (item.flWait < GetEngineTime())
|
||||
{
|
||||
item.iWaitTill = RoundToCeil(GetEngineTime() + GetEntPropFloat(button, Prop_Data, "m_flWait"));
|
||||
item.flWait = GetEngineTime() + GetEntPropFloat(button, Prop_Data, "m_flWait");
|
||||
}
|
||||
else return Plugin_Handled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user