mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 19:38:25 +00:00
Hotfix for error log spam.
This commit is contained in:
parent
ebb3203c05
commit
f092b76f7b
@ -572,16 +572,14 @@ public void OnMapEnd()
|
|||||||
|
|
||||||
public void OnEntityCreated(int entity, const char[] classname)
|
public void OnEntityCreated(int entity, const char[] classname)
|
||||||
{
|
{
|
||||||
int ref = EntIndexToEntRef(entity);
|
|
||||||
|
|
||||||
if(StrEqual(classname, "func_button", false))
|
if(StrEqual(classname, "func_button", false))
|
||||||
{
|
{
|
||||||
RequestFrame(Frame_HookButton, ref);
|
RequestFrame(Frame_HookButton, EntIndexToEntRef(entity));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(StrEqual(classname, "trigger_multiple", false))
|
else if(StrEqual(classname, "trigger_multiple", false))
|
||||||
{
|
{
|
||||||
RequestFrame(Frame_HookTrigger, ref);
|
RequestFrame(Frame_HookTrigger, EntIndexToEntRef(entity));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user