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

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

View File

@@ -206,7 +206,7 @@ CommandCost AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo,
return 0;
}
if (!CmdFailed(res)) cost += res;
if (CmdSucceeded(res)) cost += res;
}
// Go to the next tile
part++;