mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix custom assets being unmounted in scriptclass::hardreset()
This resulted in two bugs: 1. Custom assets would not be unmounted when quitting to the menu. 2. Custom assets would be unmounted when playtesting a level. The solution is to unmount assets in Game::quittomenu() instead.
This commit is contained in:
parent
b7a2cc1c22
commit
c561cd9740
2 changed files with 1 additions and 3 deletions
|
@ -7385,6 +7385,7 @@ void Game::quittomenu()
|
|||
createmenu(Menu::mainmenu);
|
||||
}
|
||||
script.hardreset();
|
||||
FILESYSTEM_unmountassets();
|
||||
}
|
||||
|
||||
void Game::returntolab()
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
#include "KeyPoll.h"
|
||||
#include "Map.h"
|
||||
|
||||
#include "FileSystemUtils.h"
|
||||
|
||||
scriptclass::scriptclass()
|
||||
{
|
||||
//Start SDL
|
||||
|
@ -2508,7 +2506,6 @@ void scriptclass::resetgametomenu()
|
|||
|
||||
void scriptclass::startgamemode( int t )
|
||||
{
|
||||
FILESYSTEM_unmountassets();
|
||||
switch(t)
|
||||
{
|
||||
case 0: //Normal new game
|
||||
|
|
Loading…
Reference in a new issue