mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Move musicclass cleanup to separate function musicclass::destroy()
This removes the music cleanup code from musicclass::init(), and requires that we also call destroy() in Graphics::reloadresources(). This is because we'll need to re-use the musicclass cleanup code elsewhere, and we don't want to copy-paste the cleanup code. Or at least, I don't (but I'm not a game dev, game devs copy-paste all the friggin' time).
This commit is contained in:
@@ -3280,6 +3280,7 @@ void Graphics::reloadresources()
|
||||
screenbuffer->LoadIcon();
|
||||
}
|
||||
|
||||
music.destroy();
|
||||
music.init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user