mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix typo, fix nullptr check notation
This commit is contained in:
@@ -453,7 +453,7 @@ static void cheat_own_all_land()
|
||||
for (coords.x = min; coords.x <= max; coords.x += 32)
|
||||
{
|
||||
TileElement* surfaceElement = map_get_surface_element_at(coords);
|
||||
if (!surfaceElement)
|
||||
if (surfaceElement == nullptr)
|
||||
continue;
|
||||
|
||||
// Ignore already owned tiles.
|
||||
|
||||
@@ -3585,7 +3585,7 @@ void rct_peep::UpdateRideAdvanceThroughEntrance()
|
||||
return;
|
||||
}
|
||||
|
||||
Guard::Assert(sub_state == PEEP_RIDE_LEAVE_ENTRANCE, "Peep substate should be LEAVE_ENTRACE");
|
||||
Guard::Assert(sub_state == PEEP_RIDE_LEAVE_ENTRANCE, "Peep substate should be LEAVE_ENTRANCE");
|
||||
if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_NO_VEHICLES))
|
||||
{
|
||||
TileCoordsXYZD entranceLocation = ride_get_entrance_location(current_ride, current_ride_station);
|
||||
|
||||
Reference in New Issue
Block a user