mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Use start scenario logic when choosing new game
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
# include <openrct2/util/Util.h>
|
||||
# include <openrct2/windows/Intent.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
static char _port[7];
|
||||
static char _name[65];
|
||||
static char _description[MAX_SERVER_DESCRIPTION_LENGTH];
|
||||
@@ -127,7 +129,7 @@ static void WindowServerStartClose(rct_window* w)
|
||||
static void WindowServerStartScenarioselectCallback(const utf8* path)
|
||||
{
|
||||
game_notify_map_change();
|
||||
if (context_load_park_from_file(path))
|
||||
if (GetContext()->LoadParkFromFile(path, false, true))
|
||||
{
|
||||
network_begin_server(gConfigNetwork.default_port, gConfigNetwork.listen_address.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user