1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Clean up window classification comparison

This commit is contained in:
Marijn van der Werf
2017-12-20 02:15:13 +01:00
parent 0048ef091f
commit 6493427011

View File

@@ -853,7 +853,7 @@ static void vehicle_update_sound_params(rct_vehicle * vehicle)
sint16 y = g_music_tracking_viewport->view_y;
sint16 w = g_music_tracking_viewport->view_width / 4;
sint16 h = g_music_tracking_viewport->view_height / 4;
if (!gWindowAudioExclusive->classification)
if (gWindowAudioExclusive->classification == WC_MAIN_WINDOW)
{
x -= w;
y -= h;
@@ -862,7 +862,7 @@ static void vehicle_update_sound_params(rct_vehicle * vehicle)
{
sint16 w2 = g_music_tracking_viewport->view_width + x;
sint16 h2 = g_music_tracking_viewport->view_height + y;
if (!gWindowAudioExclusive->classification)
if (gWindowAudioExclusive->classification == WC_MAIN_WINDOW)
{
w2 += w + w;
h2 += h + h;