FixAngles: ignore func_rot_button's

This commit is contained in:
zaCade 2017-10-29 01:07:59 +02:00
parent 7c0f5cc543
commit 02de957660

View File

@ -26,6 +26,12 @@ public Action CheckAngles(Handle timer)
if(!HasEntProp(entity, Prop_Send, "m_angRotation"))
continue;
static char sClass[128];
GetEntityClassname(entity, sClass, sizeof(sClass));
if(StrEqual(sClass, "func_rot_button"))
continue;
static float aAngles[3];
GetEntPropVector(entity, Prop_Send, "m_angRotation", aAngles);