water_map.h
changeset 3953 e64bbd8598e2
parent 3940 8965b9bfaabc
child 4559 aa0c13e39840
--- a/water_map.h	Sun Jun 04 13:39:38 2006 +0000
+++ b/water_map.h	Sun Jun 04 16:04:15 2006 +0000
@@ -63,6 +63,11 @@
 	return (Axis)GB(_m[t].m5, 1, 1);
 }
 
+static inline DiagDirection GetShipDepotDirection(TileIndex t)
+{
+	return XYNSToDiagDir(GetShipDepotAxis(t), GB(_m[t].m5, 0, 1));
+}
+
 static inline DiagDirection GetLockDirection(TileIndex t)
 {
 	return (DiagDirection)GB(_m[t].m5, 0, 2);