From ffec43850804e5fefb060ea186a55aecc9603657 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 26 Aug 2023 21:54:18 +1000 Subject: [PATCH] triggers: set bmodel correctly in CSQC Previously the .model field would be (for example) "*2" in SVQC but "" in CSQC. This change makes it "*2" in both. --- qcsrc/common/mapobjects/triggers.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mapobjects/triggers.qc b/qcsrc/common/mapobjects/triggers.qc index 5fc5f4f3f..cfc1d6fac 100644 --- a/qcsrc/common/mapobjects/triggers.qc +++ b/qcsrc/common/mapobjects/triggers.qc @@ -205,6 +205,8 @@ void trigger_common_read(entity this, bool withtarget) this.angles = '0 0 0'; this.modelindex = ReadShort(); + if (this.modelindex) + setmodelindex(this, this.modelindex); this.mins = ReadVector(); this.maxs = ReadVector(); this.scale = ReadByte() / 16; -- 2.39.2