mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user