Merge branch 'master' into jgrpp
# Conflicts: # src/ai/ai_gui.cpp # src/build_vehicle_gui.cpp # src/genworld_gui.cpp # src/lang/english.txt # src/lang/german.txt # src/lang/korean.txt # src/newgrf_sound.cpp # src/roadveh.h # src/sound.cpp # src/station_cmd.cpp # src/train.h # src/train_cmd.cpp # src/vehicle.cpp # src/vehicle_base.h # src/vehicle_gui.cpp
This commit is contained in:
@@ -248,6 +248,7 @@ void SndCopyToPool()
|
||||
|
||||
/**
|
||||
* Decide 'where' (between left and right speaker) to play the sound effect.
|
||||
* Note: Callers must determine if sound effects are enabled. This plays a sound regardless of the setting.
|
||||
* @param sound Sound effect to play
|
||||
* @param left Left edge of virtual coordinates where the sound is produced
|
||||
* @param right Right edge of virtual coordinates where the sound is produced
|
||||
@@ -256,6 +257,7 @@ void SndCopyToPool()
|
||||
*/
|
||||
static void SndPlayScreenCoordFx(SoundID sound, int left, int right, int top, int bottom)
|
||||
{
|
||||
/* Iterate from back, so that main viewport is checked first */
|
||||
for (const Window *w : Window::IterateFromBack()) {
|
||||
const Viewport *vp = w->viewport;
|
||||
|
||||
|
Reference in New Issue
Block a user