From 18babec090eb9cf780bb3b8c31aae4db56a761f6 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Sat, 9 Apr 2016 13:51:55 +0300 Subject: [PATCH] Fix in SetModel: using string from global model_precache instead of passed string --- rehlds/engine/pr_cmds.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/pr_cmds.cpp b/rehlds/engine/pr_cmds.cpp index b3c82e3..af83080 100644 --- a/rehlds/engine/pr_cmds.cpp +++ b/rehlds/engine/pr_cmds.cpp @@ -150,7 +150,11 @@ void EXT_FUNC PF_setmodel_I(edict_t *e, const char *m) { e->v.modelindex = i; model_t *mod = g_psv.models[i]; +#ifdef REHLDS_FIXES + e->v.model = *check - pr_strings; +#else // REHLDS_FIXES e->v.model = m - pr_strings; +#endif // REHLDS_FIXES if (mod) { SetMinMaxSize(e, mod->mins, mod->maxs, 1);