diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-05-12 01:24:57 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-05-12 23:18:54 +0200 |
commit | c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527 (patch) | |
tree | cf51d6ab8430cd186e02f0e8105004f8e5476728 /src/control/Garages.cpp | |
parent | c40fcdf39ab77cb0fde26e314652e0aaf9dd4544 (diff) |
Fix linux warnings
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r-- | src/control/Garages.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index d8fd3ec0..5fc44974 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -517,6 +517,7 @@ void CGarage::Update() case GARAGE_BOMBSHOP1: DMAudio.PlayFrontEndSound(SOUND_GARAGE_BOMB1_SET, 1); break; case GARAGE_BOMBSHOP2: DMAudio.PlayFrontEndSound(SOUND_GARAGE_BOMB2_SET, 1); break; case GARAGE_BOMBSHOP3: DMAudio.PlayFrontEndSound(SOUND_GARAGE_BOMB3_SET, 1); break; + default: break; } m_eGarageState = GS_OPENING; if (!CGarages::BombsAreFree) @@ -561,6 +562,7 @@ void CGarage::Update() case GARAGE_BOMBSHOP3: CHud::SetHelpMessage(TheText.Get("GA_8"), false); // Use the detonator to activate the bomb. break; + default: break; } CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_GARAGE); FindPlayerPed()->m_pWanted->m_bIgnoredByCops = false; @@ -1065,6 +1067,7 @@ void CGarage::Update() case GARAGE_HIDEOUT_ONE: StoreAndRemoveCarsForThisHideout(CGarages::aCarsInSafeHouse1, MAX_STORED_CARS_IN_INDUSTRIAL); break; case GARAGE_HIDEOUT_TWO: StoreAndRemoveCarsForThisHideout(CGarages::aCarsInSafeHouse2, MAX_STORED_CARS_IN_COMMERCIAL); break; case GARAGE_HIDEOUT_THREE: StoreAndRemoveCarsForThisHideout(CGarages::aCarsInSafeHouse3, MAX_STORED_CARS_IN_SUBURBAN); break; + default: break; } } UpdateDoorsHeight(); @@ -1093,6 +1096,7 @@ void CGarage::Update() case GARAGE_HIDEOUT_ONE: bCreatedAllCars = RestoreCarsForThisHideout(CGarages::aCarsInSafeHouse1); break; case GARAGE_HIDEOUT_TWO: bCreatedAllCars = RestoreCarsForThisHideout(CGarages::aCarsInSafeHouse2); break; case GARAGE_HIDEOUT_THREE: bCreatedAllCars = RestoreCarsForThisHideout(CGarages::aCarsInSafeHouse3); break; + default: break; } if (bCreatedAllCars) m_eGarageState = GS_OPENING; @@ -2151,6 +2155,7 @@ int32 CGarages::CountCarsInHideoutGarage(eGarageType type) case GARAGE_HIDEOUT_THREE: total += (aCarsInSafeHouse3[i].HasCar()); break; + default: break; } } return total; @@ -2165,6 +2170,7 @@ int32 CGarages::FindMaxNumStoredCarsForGarage(eGarageType type) return LIMIT_CARS_IN_COMMERCIAL; case GARAGE_HIDEOUT_THREE: return LIMIT_CARS_IN_SUBURBAN; + default: break; } return 0; } @@ -2180,6 +2186,7 @@ bool CGarages::IsPointWithinHideOutGarage(Const CVector& point) point.y > aGarages[i].m_fY1 && point.y < aGarages[i].m_fY2 && point.z > aGarages[i].m_fZ1 && point.z < aGarages[i].m_fZ2) return true; + default: break; } } return false; |