mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
Remove duplicate function musicclass::stopmusic()
It is an exact duplicate of musicclass::haltdasmusik(), so use that function instead and update callers. Looks like musicclass::haltdasmusik() came first, anyway (musicclass::stopmusic() was only used in editor.cpp).
This commit is contained in:
1 parent
34395435f0
commit
c278f05397
3 files changed
+2
-9
No files matched your search
@@ -269,12 +269,6 @@ void musicclass::play(int t)
|
||||
}
|
||||
}
|
||||
|
||||
void musicclass::stopmusic()
|
||||
{
|
||||
Mix_HaltMusic();
|
||||
currentsong = -1;
|
||||
}
|
||||
|
||||
void musicclass::haltdasmusik()
|
||||
{
|
||||
Mix_HaltMusic();
|
||||
|
||||
@@ -13,7 +13,6 @@ public:
|
||||
void init();
|
||||
|
||||
void play(int t);
|
||||
void stopmusic();
|
||||
void haltdasmusik();
|
||||
void silencedasmusik();
|
||||
void fadeMusicVolumeIn(int ms);
|
||||
|
||||
@@ -3458,7 +3458,7 @@ void editorlogic()
|
||||
map.colstate = 10;
|
||||
game.gamestate = 1;
|
||||
graphics.fademode = 4;
|
||||
music.stopmusic();
|
||||
music.haltdasmusik();
|
||||
music.play(6);
|
||||
map.nexttowercolour();
|
||||
ed.settingsmod=false;
|
||||
@@ -4398,7 +4398,7 @@ void editorinput()
|
||||
game.edsavedir=1-edentity[testeditor].p1;
|
||||
}
|
||||
|
||||
music.stopmusic();
|
||||
music.haltdasmusik();
|
||||
graphics.backgrounddrawn=false;
|
||||
ed.returneditoralpha = 1000; // Let's start it higher than 255 since it gets clamped
|
||||
script.startgamemode(21);
|
||||
|
||||
Reference in new issue
Block a user