MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / orderReverseCommand

Function orderReverseCommand

src/OpenLoco/src/Ui/Windows/Vehicle.cpp:2941–2951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))

Callers 1

onMouseUpFunction · 0.85

Calls 3

setErrorTitleFunction · 0.85
generateNumDisplayFramesFunction · 0.85
doCommandFunction · 0.50

Tested by

no test coverage detected