]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Globalsounds: update entcs origin 251/head
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 17 Nov 2015 08:37:01 +0000 (19:37 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 17 Nov 2015 08:37:01 +0000 (19:37 +1100)
qcsrc/common/effects/qc/globalsound.qc

index df0cbc575d0237f6a72f57b6317f199fe24ea585..44f20b2b9de66460e317729f5372348b6e30a350 100644 (file)
@@ -28,6 +28,7 @@
                        WriteByte(channel, fabs(chan));
                        WriteByte(channel, floor(vol * 255));
                        WriteByte(channel, floor(atten * 64));
+                       entcs_force_origin(from);
                        vector o = from.origin + 0.5 * (from.mins + from.maxs);
                        WriteCoord(channel, o.x);
                        WriteCoord(channel, o.y);