equal
deleted
inserted
replaced
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; |