From: Rudolf Polzer Date: Thu, 6 May 2010 05:18:50 +0000 (+0200) Subject: trigger_music: only compare the view origin, makes making the zones easier X-Git-Tag: xonotic-v0.1.0preview~640^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=901f4fc6b45b0924f05265dca8229563776cebc2;p=xonotic%2Fxonotic-data.pk3dir.git trigger_music: only compare the view origin, makes making the zones easier --- diff --git a/qcsrc/client/target_music.qc b/qcsrc/client/target_music.qc index 69c42ee10..952abd1bf 100644 --- a/qcsrc/client/target_music.qc +++ b/qcsrc/client/target_music.qc @@ -85,7 +85,7 @@ void Net_TargetMusic() void Ent_TriggerMusic_Think() { - if(WarpZoneLib_BoxTouchesBrush(pmove_org + pmove_mins, pmove_org + pmove_maxs, self, world)) + if(WarpZoneLib_BoxTouchesBrush(view_origin, view_origin, self, world)) music_trigger = self; self.nextthink = time; }