summaryrefslogtreecommitdiff
path: root/ai/trolly/build.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-18 14:41:24 +0000
committertron <tron@openttd.org>2006-02-18 14:41:24 +0000
commit49c7eb934be0dc92d640ea3a32c02dddcc83369a (patch)
tree2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /ai/trolly/build.c
parent6cfefdb2750d9beccb350ea47db9e2edaa61655c (diff)
downloadopenttd-49c7eb934be0dc92d640ea3a32c02dddcc83369a.tar.xz
(svn r3613) Some more const, indentation, whitespace and similar stuff
Diffstat (limited to 'ai/trolly/build.c')
-rw-r--r--ai/trolly/build.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ai/trolly/build.c b/ai/trolly/build.c
index 1f56213e0..235166cab 100644
--- a/ai/trolly/build.c
+++ b/ai/trolly/build.c
@@ -239,8 +239,7 @@ int AiNew_PickVehicle(Player *p)
if (!CmdFailed(ret)) break;
}
// We did not find a vehicle :(
- if (CmdFailed(ret)) return -1;
- return i;
+ return CmdFailed(ret) ? -1 : i;
}
}