mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
Merge pull request #196 from WPMGPRoSToTeMa/fixsetmodelenginestring
Fix in SetModel: using string from global model_precache instead of p…
This commit is contained in:
commit
fe9bfbbc70
@ -150,7 +150,11 @@ void EXT_FUNC PF_setmodel_I(edict_t *e, const char *m)
|
|||||||
{
|
{
|
||||||
e->v.modelindex = i;
|
e->v.modelindex = i;
|
||||||
model_t *mod = g_psv.models[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;
|
e->v.model = m - pr_strings;
|
||||||
|
#endif // REHLDS_FIXES
|
||||||
if (mod)
|
if (mod)
|
||||||
{
|
{
|
||||||
SetMinMaxSize(e, mod->mins, mod->maxs, 1);
|
SetMinMaxSize(e, mod->mins, mod->maxs, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user