mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 15:39:32 +01:00
Fix: Invalidate game options window after changing base sounds set. (#12731)
This commit is contained in:
parent
51e170a8d0
commit
2e7819927f
@ -12,6 +12,7 @@
|
|||||||
#include "mixer.h"
|
#include "mixer.h"
|
||||||
#include "newgrf_sound.h"
|
#include "newgrf_sound.h"
|
||||||
#include "random_access_file_type.h"
|
#include "random_access_file_type.h"
|
||||||
|
#include "window_func.h"
|
||||||
#include "window_gui.h"
|
#include "window_gui.h"
|
||||||
#include "vehicle_base.h"
|
#include "vehicle_base.h"
|
||||||
|
|
||||||
@ -259,6 +260,8 @@ void ChangeSoundSet(int index)
|
|||||||
sound->volume = _sound_base_vol[i];
|
sound->volume = _sound_base_vol[i];
|
||||||
sound->priority = 0;
|
sound->priority = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_GAME_OPTIONS, 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user