1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Update implicit zoom conversions

This commit is contained in:
Hielke Morsink
2021-09-29 20:04:56 +02:00
parent fdce5df6db
commit 53d9bfa8b4
54 changed files with 121 additions and 107 deletions

View File

@@ -34,20 +34,20 @@ void EntityBase::Invalidate()
if (x == LOCATION_NULL)
return;
int32_t maxZoom = 0;
ZoomLevel maxZoom{ 0 };
switch (Type)
{
case EntityType::Vehicle:
case EntityType::Guest:
case EntityType::Staff:
maxZoom = 2;
maxZoom = ZoomLevel{ 2 };
break;
case EntityType::CrashedVehicleParticle:
case EntityType::JumpingFountain:
maxZoom = 0;
maxZoom = ZoomLevel{ 0 };
break;
case EntityType::Duck:
maxZoom = 1;
maxZoom = ZoomLevel{ 1 };
break;
case EntityType::SteamParticle:
case EntityType::MoneyEffect:
@@ -55,10 +55,10 @@ void EntityBase::Invalidate()
case EntityType::CrashSplash:
case EntityType::ExplosionFlare:
case EntityType::Balloon:
maxZoom = 2;
maxZoom = ZoomLevel{ 2 };
break;
case EntityType::Litter:
maxZoom = 0;
maxZoom = ZoomLevel{ 0 };
break;
default:
break;