equal
deleted
inserted
replaced
39 Depot *GetDepotByTile(TileIndex tile) |
39 Depot *GetDepotByTile(TileIndex tile) |
40 { |
40 { |
41 Depot *depot; |
41 Depot *depot; |
42 |
42 |
43 FOR_ALL_DEPOTS(depot) { |
43 FOR_ALL_DEPOTS(depot) { |
44 if (depot->xy == tile) |
44 if (depot->xy == tile) return depot; |
45 return depot; |
|
46 } |
45 } |
47 |
46 |
48 return NULL; |
47 return NULL; |
49 } |
48 } |
50 |
49 |
65 return depot; |
64 return depot; |
66 } |
65 } |
67 } |
66 } |
68 |
67 |
69 /* Check if we can add a block to the pool */ |
68 /* Check if we can add a block to the pool */ |
70 if (AddBlockToPool(&_depot_pool)) |
69 if (AddBlockToPool(&_depot_pool)) return AllocateDepot(); |
71 return AllocateDepot(); |
|
72 |
70 |
73 return NULL; |
71 return NULL; |
74 } |
72 } |
75 |
73 |
76 /** |
74 /** |