| 122 | } |
| 123 | |
| 124 | void Game_Vehicle::SyncWithRider(const Game_Character* rider) { |
| 125 | SetProcessed(true); |
| 126 | SetMapId(rider->GetMapId()); |
| 127 | SetX(rider->GetX()); |
| 128 | SetY(rider->GetY()); |
| 129 | SetDirection(rider->GetDirection()); |
| 130 | SetFacing(rider->GetFacing()); |
| 131 | SetRemainingStep(rider->GetRemainingStep()); |
| 132 | |
| 133 | // RPG_RT doesn't copy jumping chunks |
| 134 | |
| 135 | UpdateAnimation(); |
| 136 | CancelMoveRoute(); |
| 137 | } |
| 138 | |
| 139 | int Game_Vehicle::GetAltitude() const { |
| 140 | if (!IsFlying()) |
no test coverage detected