mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-04 11:37:55 +00:00
Major refactoring, multisampling
This commit is contained in:
@@ -65,13 +65,13 @@ int musfadeval = 2000;
|
||||
|
||||
eLand cid = laNone;
|
||||
|
||||
hookset<bool(eLand)> *hooks_music;
|
||||
|
||||
void handlemusic() {
|
||||
DEBB(DF_GRAPH, (debugfile,"handle music\n"));
|
||||
if(audio && musicvolume) {
|
||||
eLand id = getCurrentLandForMusic();
|
||||
#ifdef EXTRA_MUSIC
|
||||
if(extra::changemusic(id)) return;
|
||||
#endif
|
||||
if(callhandlers(false, hooks_music, id)) return;
|
||||
if(outoffocus) id = eLand(0);
|
||||
if(musfname[id] == "LAST") id = cid;
|
||||
if(!loaded[id]) {
|
||||
|
Reference in New Issue
Block a user