mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Implement configurable object sounds: ambient, visit and removal
* If there more than one sound for visit or removal random is played * At moment only the first ambient sound will be used
This commit is contained in:
committed by
DJWarmonger
parent
e9bfbb70c1
commit
f15cadc87b
@ -1280,6 +1280,10 @@ static void handleEvent(SDL_Event & ev)
|
||||
case FULLSCREEN_TOGGLED:
|
||||
fullScreenChanged();
|
||||
break;
|
||||
case INTERFACE_CHANGED:
|
||||
if(LOCPLINT)
|
||||
LOCPLINT->updateAmbientSounds();
|
||||
break;
|
||||
default:
|
||||
logGlobal->error("Unknown user event. Code %d", ev.user.code);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user