summaryrefslogtreecommitdiff
path: root/depot.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-27 21:25:53 +0000
committertron <tron@openttd.org>2006-06-27 21:25:53 +0000
commit2b27073156f40df263cf653263488b8d72a76236 (patch)
tree1bfdb9c99b43fdc3b07ac13cbed4259a06d34f6f /depot.c
parentc126ce110ee33bffe07dac5283d8a1648dc662b7 (diff)
downloadopenttd-2b27073156f40df263cf653263488b8d72a76236.tar.xz
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Diffstat (limited to 'depot.c')
-rw-r--r--depot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/depot.c b/depot.c
index 8faf3b8bb..1eb1ebbbd 100644
--- a/depot.c
+++ b/depot.c
@@ -41,8 +41,7 @@ Depot *GetDepotByTile(TileIndex tile)
Depot *depot;
FOR_ALL_DEPOTS(depot) {
- if (depot->xy == tile)
- return depot;
+ if (depot->xy == tile) return depot;
}
return NULL;
@@ -67,8 +66,7 @@ Depot *AllocateDepot(void)
}
/* Check if we can add a block to the pool */
- if (AddBlockToPool(&_depot_pool))
- return AllocateDepot();
+ if (AddBlockToPool(&_depot_pool)) return AllocateDepot();
return NULL;
}