From 1a344c1441785803482dc0da947f5a37c29b64be Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 13 Apr 2011 08:13:49 -0400 Subject: [PATCH] SetEntProp now marks edict state as changed at offset (bug 4855, r=fyren). --- core/smn_entities.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/smn_entities.cpp b/core/smn_entities.cpp index 515eb1b6..236ffe23 100644 --- a/core/smn_entities.cpp +++ b/core/smn_entities.cpp @@ -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; }