mirror of https://github.com/OpenRCT2/OpenRCT2.git
Enforce tile start on boat location
This commit is contained in:
parent
08bd6080fd
commit
5d891a0abd
|
@ -4656,7 +4656,7 @@ void Vehicle::UpdateBoatLocation()
|
|||
if (location.ToTileStart() == returnPosition.ToCoordsXY())
|
||||
{
|
||||
sub_state = 1;
|
||||
BoatLocation = location;
|
||||
BoatLocation = location.ToTileStart();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4700,13 +4700,13 @@ void Vehicle::UpdateBoatLocation()
|
|||
continue;
|
||||
}
|
||||
|
||||
BoatLocation = trackLocation;
|
||||
BoatLocation = trackLocation.ToTileStart();
|
||||
return;
|
||||
}
|
||||
|
||||
CoordsXY trackLocation = TrackLocation;
|
||||
trackLocation += CoordsDirectionDelta[curDirection & 3];
|
||||
BoatLocation = trackLocation;
|
||||
BoatLocation = trackLocation.ToTileStart();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue