From ddd4958164980954577fcca388ffeb455f3fc463 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 12 May 2005 23:46:01 +0000 Subject: (svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands. - CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ() - Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders() --- network_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network_gui.c') diff --git a/network_gui.c b/network_gui.c index 028ef770c..833ab72d0 100644 --- a/network_gui.c +++ b/network_gui.c @@ -572,7 +572,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e) strcpy(_file_to_saveload.name, name); snprintf(_network_game_info.map_name, sizeof(_network_game_info.map_name), "Loaded scenario"); DeleteWindow(w); - DoCommandP(0, Random(), InteractiveRandom(), NULL, CMD_START_SCENARIO); + StartScenarioEditor(Random(), InteractiveRandom()); } } break; -- cgit v1.2.3-54-g00ecf