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

Method tryReverse

src/OpenLoco/src/Vehicles/VehicleHead.cpp:1442–1458  ·  view source on GitHub ↗

0x004A8F22

Source from the content-addressed store, hash-verified

1440
1441 // 0x004A8F22
1442 bool VehicleHead::tryReverse()
1443 {
1444 if (isOnExpectedRoadOrTrack())
1445 {
1446 auto temp = var_52;
1447 var_52 = 1;
1448 sub_4ADB47(false);
1449 var_52 = temp;
1450 return true;
1451 }
1452 else
1453 {
1454 Vehicle train(head);
1455 train.veh2->destroyTrain();
1456 return false;
1457 }
1458 }
1459
1460 // 0x004A8CB6
1461 bool VehicleHead::stoppingUpdate()

Callers

nothing calls this directly

Calls 1

destroyTrainMethod · 0.80

Tested by

no test coverage detected