(svn r20115) -Add: Show an specific error message when trying to remove nonexistant stations.

This commit is contained in:
terkhen
2010-07-10 20:17:05 +00:00
parent 191389fa8d
commit bb24713218
2 changed files with 3 additions and 2 deletions

View File

@@ -1439,7 +1439,7 @@ CommandCost RemoveFromRailBaseStation(TileArea ta, SmallVector<T *, 4> &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;
}