summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 14:25:32 +0000
committercelestar <celestar@openttd.org>2006-04-03 14:25:32 +0000
commit5931b34aff7f774ec2a591e5658d25706fe01066 (patch)
tree93820da9b941ae74b1d1ae37cd47bc46b37c3434 /console_cmds.c
parent961b44e697111245a43d3aa98d606e15fe97ad5d (diff)
downloadopenttd-5931b34aff7f774ec2a591e5658d25706fe01066.tar.xz
(svn r4259) -[multistop] Fix/Feature/Codechange:
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles. 2) Removed the "wait for stop" feature, because it did not work in practise. 3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet) 4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops. 5) Hopefully the last fundamental change to multistop
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 7b044b4d9..c843f1a10 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -92,30 +92,6 @@ static void IConsoleHelp(const char *str)
IConsolePrintF(_icolour_warn, "- %s", str);
}
-DEF_CONSOLE_CMD(ConResetSlots)
-{
- Vehicle *v;
- RoadStop *rs;
- if (argc == 0) {
- IConsoleHelp("Resets all slots in the game. For debugging only. Usage: 'clearslots'");
- return true;
- }
-
- FOR_ALL_VEHICLES(v) {
- if (IsValidVehicle(v)) {
- if (v->type == VEH_Road)
- ClearSlot(v);
- }
- }
-
- FOR_ALL_ROADSTOPS(rs) {
- int i;
- for (i = 0; i < NUM_SLOTS; i++) rs->slot[i] = INVALID_VEHICLE;
- }
-
- return true;
-}
-
DEF_CONSOLE_CMD(ConStopAllVehicles)
{
Vehicle* v;
@@ -1389,7 +1365,6 @@ void IConsoleStdLibRegister(void)
IConsoleCmdRegister("cd", ConChangeDirectory);
IConsoleCmdRegister("pwd", ConPrintWorkingDirectory);
IConsoleCmdRegister("clear", ConClearBuffer);
- IConsoleCmdRegister("clearslots", ConResetSlots);
IConsoleCmdRegister("stopall", ConStopAllVehicles);
IConsoleAliasRegister("dir", "ls");