diff options
author | erorcun <erayorcunus@gmail.com> | 2020-12-09 01:31:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 01:31:03 +0100 |
commit | ac3484b82e0bd286ddd1e56fb566303d7a3ca40d (patch) | |
tree | f6c95cfd85cb2261f010983f01fd6d62a6de5ef1 /src/control/Garages.cpp | |
parent | fix CObject::DeleteAllTempObjectsInArea (diff) | |
parent | uint8 enums fixed (diff) | |
download | re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.gz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.bz2 re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.lz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.xz re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.zst re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.zip |
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r-- | src/control/Garages.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index a8a7a46b..29fc8db1 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -190,7 +190,7 @@ void CGarages::Update(void) aGarages[GarageToBeTidied].TidyUpGarage(); } -int16 CGarages::AddOne(float X1, float Y1, float Z1, float X2, float Y2, float X3, float Y3, float Z2, eGarageType type, int32 targetId) +int16 CGarages::AddOne(float X1, float Y1, float Z1, float X2, float Y2, float X3, float Y3, float Z2, uint8 type, int32 targetId) { if (NumGarages >= NUM_GARAGES) { assert(0); @@ -291,7 +291,7 @@ int16 CGarages::AddOne(float X1, float Y1, float Z1, float X2, float Y2, float X return NumGarages++; } -void CGarages::ChangeGarageType(int16 garage, eGarageType type, int32 mi) +void CGarages::ChangeGarageType(int16 garage, uint8 type, int32 mi) { CGarage* pGarage = &aGarages[garage]; pGarage->m_eGarageType = type; @@ -2072,7 +2072,7 @@ void CGarages::CloseHideOutGaragesBeforeSave() } } -int32 CGarages::CountCarsInHideoutGarage(eGarageType type) +int32 CGarages::CountCarsInHideoutGarage(uint8 type) { int32 total = 0; for (int i = 0; i < NUM_GARAGE_STORED_CARS; i++) { |