| 4269 | } |
| 4270 | |
| 4271 | int32_t GetTurnCount2Elements(const Ride& ride, uint8_t type) |
| 4272 | { |
| 4273 | const uint16_t* turn_count; |
| 4274 | switch (type) |
| 4275 | { |
| 4276 | case 0: |
| 4277 | turn_count = &ride.turnCountDefault; |
| 4278 | break; |
| 4279 | case 1: |
| 4280 | turn_count = &ride.turnCountBanked; |
| 4281 | break; |
| 4282 | case 2: |
| 4283 | turn_count = &ride.turnCountSloped; |
| 4284 | break; |
| 4285 | default: |
| 4286 | return 0; |
| 4287 | } |
| 4288 | |
| 4289 | return ((*turn_count) & kTurnMask2Elements) >> 5; |
| 4290 | } |
| 4291 | |
| 4292 | int32_t GetTurnCount3Elements(const Ride& ride, uint8_t type) |
| 4293 | { |
no outgoing calls
no test coverage detected