From bb247132182238960ea0a7b1c26c43fd30c42fe7 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 10 Jul 2010 20:17:05 +0000 Subject: (svn r20115) -Add: Show an specific error message when trying to remove nonexistant stations. --- src/station_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index f35991808..5e0d478ea 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1439,7 +1439,7 @@ CommandCost RemoveFromRailBaseStation(TileArea ta, SmallVector &affected } } - if (quantity == 0) return CMD_ERROR; + if (quantity == 0) return_cmd_error(STR_ERROR_THERE_IS_NO_STATION); for (T **stp = affected_stations.Begin(); stp != affected_stations.End(); stp++) { T *st = *stp; @@ -1960,7 +1960,7 @@ CommandCost CmdRemoveRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, ui } } - if (quantity == 0) return CMD_ERROR; + if (quantity == 0) return_cmd_error(STR_ERROR_THERE_IS_NO_STATION); return cost; } -- cgit v1.2.3-54-g00ecf