1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02: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:
Misa 2020-04-03 15:44:04 -07:00 committed by Ethan Lee
parent 34395435f0
commit c278f05397
3 changed files with 2 additions and 9 deletions

View File

@ -269,12 +269,6 @@ void musicclass::play(int t)
}
}
void musicclass::stopmusic()
{
Mix_HaltMusic();
currentsong = -1;
}
void musicclass::haltdasmusik()
{
Mix_HaltMusic();

View File

@ -13,7 +13,6 @@ public:
void init();
void play(int t);
void stopmusic();
void haltdasmusik();
void silencedasmusik();
void fadeMusicVolumeIn(int ms);

View File

@ -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);