]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'bones_was_here/csqc_bmodels' into 'master'
authorterencehill <piuntn@gmail.com>
Thu, 31 Aug 2023 07:04:13 +0000 (07:04 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 31 Aug 2023 07:04:13 +0000 (07:04 +0000)
triggers: set bmodel correctly in CSQC

See merge request xonotic/xonotic-data.pk3dir!1237

qcsrc/common/mapobjects/triggers.qc

index 5fc5f4f3fb1bea0af0fc09682ab7b6196e857aeb..cfc1d6fac67f6222162c444e665f2dd31133b443 100644 (file)
@@ -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;