summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2020-12-07 00:56:12 +0100
committerwithmorten <morten.with@gmail.com>2020-12-07 00:56:12 +0100
commitafdf8c25a05f280f524d946384cf74d69aa16e8a (patch)
treeac8168c89de8d1738d6c6fc488f1f0c492f0592a /src/control/Garages.cpp
parentuint8 enums fixed (diff)
downloadre3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.gz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.bz2
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.lz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.xz
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.tar.zst
re3-afdf8c25a05f280f524d946384cf74d69aa16e8a.zip
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r--src/control/Garages.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 33137c69..ff11600b 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -202,7 +202,7 @@ void CGarages::Update(void)
aGarages[GarageToBeTidied].TidyUpGarage();
}
-int16 CGarages::AddOne(CVector p1, CVector p2, eGarageType type, int32 targetId)
+int16 CGarages::AddOne(CVector p1, CVector p2, uint8 type, int32 targetId)
{
if (NumGarages >= NUM_GARAGES) {
assert(0);
@@ -285,7 +285,7 @@ int16 CGarages::AddOne(CVector p1, CVector p2, eGarageType type, int32 targetId)
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;
@@ -2172,7 +2172,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++) {
@@ -2192,7 +2192,7 @@ int32 CGarages::CountCarsInHideoutGarage(eGarageType type)
return total;
}
-int32 CGarages::FindMaxNumStoredCarsForGarage(eGarageType type)
+int32 CGarages::FindMaxNumStoredCarsForGarage(uint8 type)
{
switch (type) {
case GARAGE_HIDEOUT_ONE: