mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
This commit is contained in:
parent
679cd3c21b
commit
0ab078158e
|
@ -161,17 +161,6 @@ DEF_CONSOLE_CMD(ConResetTile)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEF_CONSOLE_CMD(ConStopAllVehicles)
|
|
||||||
{
|
|
||||||
if (argc == 0) {
|
|
||||||
IConsoleHelp("Stops all vehicles in the game. For debugging only! Use at your own risk... Usage: 'stopall'");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
StopAllVehicles();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif /* _DEBUG */
|
#endif /* _DEBUG */
|
||||||
|
|
||||||
DEF_CONSOLE_CMD(ConScrollToTile)
|
DEF_CONSOLE_CMD(ConScrollToTile)
|
||||||
|
@ -1742,7 +1731,6 @@ DEF_CONSOLE_CMD(ConNewGRFReload)
|
||||||
static void IConsoleDebugLibRegister()
|
static void IConsoleDebugLibRegister()
|
||||||
{
|
{
|
||||||
IConsoleCmdRegister("resettile", ConResetTile);
|
IConsoleCmdRegister("resettile", ConResetTile);
|
||||||
IConsoleCmdRegister("stopall", ConStopAllVehicles);
|
|
||||||
IConsoleAliasRegister("dbg_echo", "echo %A; echo %B");
|
IConsoleAliasRegister("dbg_echo", "echo %A; echo %B");
|
||||||
IConsoleAliasRegister("dbg_echo2", "echo %!");
|
IConsoleAliasRegister("dbg_echo2", "echo %!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2174,19 +2174,6 @@ Order *Vehicle::GetNextManualOrder(int index) const
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopAllVehicles()
|
|
||||||
{
|
|
||||||
Vehicle *v;
|
|
||||||
FOR_ALL_VEHICLES(v) {
|
|
||||||
/* Code ripped from CmdStartStopTrain. Can't call it, because of
|
|
||||||
* ownership problems, so we'll duplicate some code, for now */
|
|
||||||
v->vehstatus |= VS_STOPPED;
|
|
||||||
v->MarkDirty();
|
|
||||||
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
|
|
||||||
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void VehiclesYearlyLoop()
|
void VehiclesYearlyLoop()
|
||||||
{
|
{
|
||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
|
|
|
@ -170,7 +170,6 @@ static inline uint32 GetCmdSendToDepot(const BaseVehicle *v)
|
||||||
|
|
||||||
CommandCost EnsureNoVehicleOnGround(TileIndex tile);
|
CommandCost EnsureNoVehicleOnGround(TileIndex tile);
|
||||||
CommandCost EnsureNoTrainOnTrackBits(TileIndex tile, TrackBits track_bits);
|
CommandCost EnsureNoTrainOnTrackBits(TileIndex tile, TrackBits track_bits);
|
||||||
void StopAllVehicles();
|
|
||||||
|
|
||||||
extern VehicleID _new_vehicle_id;
|
extern VehicleID _new_vehicle_id;
|
||||||
extern uint16 _returned_refit_capacity;
|
extern uint16 _returned_refit_capacity;
|
||||||
|
|
Loading…
Reference in New Issue