]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
trigger_music: only compare the view origin, makes making the zones easier
authorRudolf Polzer <divverent@alientrap.org>
Thu, 6 May 2010 05:18:50 +0000 (07:18 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 6 May 2010 05:18:50 +0000 (07:18 +0200)
qcsrc/client/target_music.qc

index 69c42ee101751f3dde4bb9048b53595649e6942b..952abd1bf0c3c0efc67cf453ed87fdfaa57bcb5b 100644 (file)
@@ -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;
 }