| 2939 | } |
| 2940 | |
| 2941 | static bool orderReverseCommand(Vehicles::VehicleHead* const head) |
| 2942 | { |
| 2943 | GameCommands::VehicleOrderReverseArgs args{}; |
| 2944 | args.head = head->id; |
| 2945 | |
| 2946 | GameCommands::setErrorTitle(StringIds::empty); |
| 2947 | auto result = GameCommands::doCommand(args, GameCommands::Flags::apply); |
| 2948 | |
| 2949 | Vehicles::OrderManager::generateNumDisplayFrames(head); |
| 2950 | return result != GameCommands::kFailure; |
| 2951 | } |
| 2952 | |
| 2953 | // 0x004B4BC1 / 0x004B4C78 based on |
| 2954 | static bool onOrderMove(Vehicles::VehicleHead* const head, const int16_t orderId, bool(orderMoveFunc)(Vehicles::VehicleHead*, uint32_t)) |
no test coverage detected