From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 11 May 2023 20:17:55 +0000 (+0200) Subject: link after setting the .solid field in g_model_init() to ensure that the entity is... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea4a13ba17ce4f06334fede4633dc6b5b4688b7b;p=xonotic%2Fxonotic-data.pk3dir.git link after setting the .solid field in g_model_init() to ensure that the entity is linked to the area grid --- 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)