Implement mp_time (magictime) exposure.
@@ -67,6 +67,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"move_z",
"mp",
"mp_old",
+ "mp_time",
"name",
"nograb",
"nograb_default",
@@ -489,6 +490,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_MP_TIME:
+
+ ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
+ (*pretvar)->lVal = (LONG)handle->magictime;
+
+ break;
+
case _ENTITY_NAME:
ScriptVariant_ChangeType(*pretvar, VT_STR);
@@ -1095,6 +1103,15 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_MP_TIME:
+
+ if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
+ {
+ handle->magictime = temp_int;
+ }
+
+ break;
+
case _ENTITY_NAME:
if (varlist[ARG_VALUE]->vt == VT_STR)
