summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-12 23:46:01 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-12 23:46:01 +0000
commitddd4958164980954577fcca388ffeb455f3fc463 (patch)
treedde69a1afcdeffecc49a408ef9164ad83781a82f /network_gui.c
parent0727085b3b4f1fde705f307274ccf4d785a20854 (diff)
downloadopenttd-ddd4958164980954577fcca388ffeb455f3fc463.tar.xz
(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()
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c2
1 files changed, 1 insertions, 1 deletions
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;