depot.h
changeset 3185 a9d0cdff7b84
parent 3179 8ef3e8028af5
child 3346 a0d4def7d934
--- a/depot.h	Sun Mar 12 15:04:03 2006 +0000
+++ b/depot.h	Sun Mar 12 16:13:16 2006 +0000
@@ -8,6 +8,7 @@
 
 #include "direction.h"
 #include "pool.h"
+#include "rail_map.h"
 #include "road_map.h"
 #include "tile.h"
 #include "variables.h"
@@ -103,7 +104,7 @@
 
 	switch (type)
 	{
-		case TRANSPORT_RAIL: return (DiagDirection)GB(_m[tile].m5, 0, 2);
+		case TRANSPORT_RAIL: return GetRailDepotDirection(tile);
 		case TRANSPORT_ROAD: return GetRoadDepotDirection(tile);
 		case TRANSPORT_WATER:
 			/* Water is stubborn, it stores the directions in a different order. */