(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).

This commit is contained in:
rubidium
2007-06-18 16:42:40 +00:00
parent 80d71953ba
commit 82e79b847e
13 changed files with 49 additions and 47 deletions

View File

@@ -1441,7 +1441,7 @@ CommandCost CmdRemoveRoadStop(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
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. */