diff options
author | withmorten <morten.with@gmail.com> | 2020-12-07 01:30:38 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2020-12-07 01:30:38 +0100 |
commit | 912e71be537aec6a8b2681c8f0208107a379e216 (patch) | |
tree | 542456d2acc1acb2a2f15ae8a92ae51be41444e0 /src/control/Garages.cpp | |
parent | uint16 enums fixed (diff) | |
download | re3-912e71be537aec6a8b2681c8f0208107a379e216.tar re3-912e71be537aec6a8b2681c8f0208107a379e216.tar.gz re3-912e71be537aec6a8b2681c8f0208107a379e216.tar.bz2 re3-912e71be537aec6a8b2681c8f0208107a379e216.tar.lz re3-912e71be537aec6a8b2681c8f0208107a379e216.tar.xz re3-912e71be537aec6a8b2681c8f0208107a379e216.tar.zst re3-912e71be537aec6a8b2681c8f0208107a379e216.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 b27b3c20..6ca13014 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -192,7 +192,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); @@ -293,7 +293,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; @@ -2074,7 +2074,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++) { |