depot.h
changeset 1944 dd9cba5fab2a
parent 1942 c5d5cf5b0263
child 1959 c2c3a9850c2e
equal deleted inserted replaced
1943:a0256658287d 1944:dd9cba5fab2a
    96 	switch (type)
    96 	switch (type)
    97 	{
    97 	{
    98 		case TRANSPORT_RAIL:
    98 		case TRANSPORT_RAIL:
    99 		case TRANSPORT_ROAD:
    99 		case TRANSPORT_ROAD:
   100 			/* Rail and road store a diagonal direction in bits 0 and 1 */
   100 			/* Rail and road store a diagonal direction in bits 0 and 1 */
   101 			return _map5[tile] & 3;
   101 			return (DiagDirection)(_map5[tile] & 3);
   102 		case TRANSPORT_WATER:
   102 		case TRANSPORT_WATER:
   103 			/* Water is stubborn, it stores the directions in a different order. */
   103 			/* Water is stubborn, it stores the directions in a different order. */
   104 			switch (_map5[tile] & 3) {
   104 			switch (_map5[tile] & 3) {
   105 				case 0: return DIAGDIR_NE;
   105 				case 0: return DIAGDIR_NE;
   106 				case 1: return DIAGDIR_SW;
   106 				case 1: return DIAGDIR_SW;