From: bones_was_here Date: Sat, 26 Aug 2023 11:54:18 +0000 (+1000) Subject: triggers: set bmodel correctly in CSQC X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ffec43850804e5fefb060ea186a55aecc9603657;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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;