depot.h
changeset 1944 dd9cba5fab2a
parent 1942 c5d5cf5b0263
child 1959 c2c3a9850c2e
--- a/depot.h	Thu Jun 16 20:54:37 2005 +0000
+++ b/depot.h	Fri Jun 17 00:22:46 2005 +0000
@@ -98,7 +98,7 @@
 		case TRANSPORT_RAIL:
 		case TRANSPORT_ROAD:
 			/* Rail and road store a diagonal direction in bits 0 and 1 */
-			return _map5[tile] & 3;
+			return (DiagDirection)(_map5[tile] & 3);
 		case TRANSPORT_WATER:
 			/* Water is stubborn, it stores the directions in a different order. */
 			switch (_map5[tile] & 3) {