From b09431478d416ceb58f9676d67c1cc3b4af397bc Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 18 Jun 2007 16:42:40 +0000 Subject: (svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded). --- src/ai/trolly/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/trolly/build.cpp') diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp index 60518d0fa..25b7ebd8d 100644 --- a/src/ai/trolly/build.cpp +++ b/src/ai/trolly/build.cpp @@ -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++; -- cgit v1.2.3-70-g09d2