SetEntProp now marks edict state as changed at offset (bug 4855, r=fyren).

This commit is contained in:
Nicholas Hastings 2011-04-13 08:13:49 -04:00
parent 10129fa568
commit 1a344c1441

View File

@ -1180,6 +1180,11 @@ static cell_t SetEntProp(IPluginContext *pContext, const cell_t *params)
{
*(bool *)((uint8_t *)pEntity + offset) = params[4] ? true : false;
}
if (params[2] == Prop_Send && (pEdict != NULL))
{
g_HL2.SetEdictStateChanged(pEdict, offset);
}
return 0;
}