From ea4a13ba17ce4f06334fede4633dc6b5b4688b7b Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 11 May 2023 22:17:55 +0200 Subject: [PATCH] link after setting the .solid field in g_model_init() to ensure that the entity is linked to the area grid --- qcsrc/common/mapobjects/models.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mapobjects/models.qc b/qcsrc/common/mapobjects/models.qc index f342ebb25..31a8b072c 100644 --- a/qcsrc/common/mapobjects/models.qc +++ b/qcsrc/common/mapobjects/models.qc @@ -172,6 +172,8 @@ void g_model_init(entity ent, float sol) InitializeEntity(ent, g_model_dropbyspawnflags, INITPRIO_DROPTOFLOOR); if(!ent.solid) ent.solid = (sol); else if(ent.solid < 0) ent.solid = SOLID_NOT; + // link entity after setting the .solid field to ensure that it gets linked to the area grid + setorigin(ent, ent.origin); } void g_clientmodel_init(entity ent, float sol) -- 2.39.2