From: TimePath Date: Tue, 17 Nov 2015 08:37:01 +0000 (+1100) Subject: Globalsounds: update entcs origin X-Git-Tag: xonotic-v0.8.2~1653^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93b83eedcc51950af7a67cc3375c13cbd8801e35;p=xonotic%2Fxonotic-data.pk3dir.git Globalsounds: update entcs origin --- diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index df0cbc575..44f20b2b9 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -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);