diff options
author | alberth <alberth@openttd.org> | 2010-02-27 13:51:11 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-02-27 13:51:11 +0000 |
commit | a4927dcd21679294cf7eedc03e57d811ee71b4df (patch) | |
tree | a2eca4e72ad4c6e05b4127a20f093792fecce3a1 /src/waypoint_cmd.cpp | |
parent | 2ac558494caf7dfca5347a56bc85a92de9ed888f (diff) | |
download | openttd-a4927dcd21679294cf7eedc03e57d811ee71b4df.tar.xz |
(svn r19273) -Codechange: Return station joining error message when error is detected.
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index 64c5f5f4e..348ac5d12 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -253,6 +253,7 @@ CommandCost CmdBuildRailWaypoint(TileIndex start_tile, DoCommandFlag flags, uint Waypoint *wp = NULL; TileArea new_location(TileArea(start_tile, width, height)); CommandCost ret = FindJoiningWaypoint(est, station_to_join, adjacent, new_location, &wp); + ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; /* Check if there is an already existing, deleted, waypoint close to us that we can reuse. */ |