summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-26 22:45:48 +0000
committersmatz <smatz@openttd.org>2009-05-26 22:45:48 +0000
commit5a463c8347fe1e68ab31dda1425e9060d52bfbd6 (patch)
tree55f5c9de8dcbda6268d003b29af59650594ce27a /src/ship.h
parent7ee882d03f4c41d8659ed82fd5be0d0efbae0a0c (diff)
downloadopenttd-5a463c8347fe1e68ab31dda1425e9060d52bfbd6.tar.xz
(svn r16442) -Codechange: use new Vehicle accessors at more places
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship.h b/src/ship.h
index 67f1a8748..99a4f94aa 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -49,4 +49,6 @@ struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> {
bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse);
};
+#define FOR_ALL_SHIPS(var) FOR_ALL_VEHICLES_OF_TYPE(Ship, var)
+
#endif /* SHIP_H */