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/vehicles/Automobile.cpp | |
parent | fix shotgun (diff) | |
download | re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.gz re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.bz2 re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.lz re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.xz re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.zst re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 60f17204..a880f26d 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -252,6 +252,7 @@ CAutomobile::ProcessControl(void) strongGrip2 = true; } } + default: break; } } @@ -423,6 +424,7 @@ CAutomobile::ProcessControl(void) m_fGasPedal = 0.0f; m_nCarHornTimer = 0; break; + default: break; } // what's going on here? @@ -1259,6 +1261,7 @@ CAutomobile::PreRender(void) m_aWheelColPoints[i].point + CVector(0.0f, 0.0f, 0.05f), CVector(0.0f, 0.0f, 0.0f), nil, 0.1f); break; + default: break; } } }else{ @@ -1383,6 +1386,7 @@ CAutomobile::PreRender(void) GetForward().x, GetForward().y, &m_aWheelSkidmarkMuddy[CARWHEEL_REAR_LEFT], &m_aWheelSkidmarkBloody[CARWHEEL_REAR_LEFT]); break; + default: break; } switch(m_aWheelState[CARWHEEL_REAR_RIGHT]){ @@ -1400,6 +1404,7 @@ CAutomobile::PreRender(void) GetForward().x, GetForward().y, &m_aWheelSkidmarkMuddy[CARWHEEL_REAR_RIGHT], &m_aWheelSkidmarkBloody[CARWHEEL_REAR_RIGHT]); break; + default: break; } } @@ -1851,7 +1856,7 @@ CAutomobile::PreRender(void) false); CVector pos = GetPosition() - 4.0f*GetForward(); if(Damage.GetLightStatus(VEHLIGHT_REAR_LEFT) == LIGHT_STATUS_OK || - Damage.GetLightStatus(VEHLIGHT_REAR_RIGHT) == LIGHT_STATUS_OK) + Damage.GetLightStatus(VEHLIGHT_REAR_RIGHT) == LIGHT_STATUS_OK) { if(m_fBrakePedal > 0.0f) CPointLights::AddLight(CPointLights::LIGHT_POINT, pos, CVector(0.0f, 0.0f, 0.0f), 10.0f, 1.0f, 0.0f, 0.0f, @@ -1860,6 +1865,7 @@ CAutomobile::PreRender(void) CPointLights::AddLight(CPointLights::LIGHT_POINT, pos, CVector(0.0f, 0.0f, 0.0f), 7.0f, 0.6f, 0.0f, 0.0f, CPointLights::FOG_NONE, false); + } } }else{ // Lights off @@ -3781,6 +3787,7 @@ CAutomobile::IsDoorReady(eDoors door) case DOOR_FRONT_RIGHT: doorflag = CAR_DOOR_FLAG_RF; break; case DOOR_REAR_LEFT: doorflag = CAR_DOOR_FLAG_LR; break; case DOOR_REAR_RIGHT: doorflag = CAR_DOOR_FLAG_RR; break; + default: break; } return (doorflag & m_nGettingInFlags) == 0; } |