diff src/station_cmd.cpp @ 6946:803e29b0584e draft

(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
author rubidium <rubidium@openttd.org>
date Mon, 18 Jun 2007 16:42:40 +0000 (2007-06-18)
parents fd42cb9816c6
children d2846442a133
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1441,7 +1441,7 @@
 	CommandCost ret = RemoveRoadStop(st, flags, tile);
 
 	/* If the stop was a drive-through stop replace the road */
-	if ((flags & DC_EXEC) && !CmdFailed(ret) && is_drive_through) {
+	if ((flags & DC_EXEC) && CmdSucceeded(ret) && is_drive_through) {
 		/* Rebuild the drive throuhg road stop. As a road stop can only be
 		 * removed by the owner of the roadstop, _current_player is the
 		 * owner of the road stop. */