summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-19 21:42:55 +0200
committeraap <aap@papnet.eu>2020-05-19 21:42:55 +0200
commit0b0ba49abc34315f532f9adcdbc277d5275723c7 (patch)
treeeaad5557debdcc21e0936cb47ba9eb975d1431ea /src/entities
parentlittle cleanup of handlingmgr (diff)
downloadre3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar.gz
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar.bz2
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar.lz
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar.xz
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.tar.zst
re3-0b0ba49abc34315f532f9adcdbc277d5275723c7.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Entity.cpp2
-rw-r--r--src/entities/Physical.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index ec50dd30..683a3571 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -683,7 +683,7 @@ CEntity::ProcessLightsForEntity(void)
lightOn = true;
break;
case LIGHT_FLICKER_NIGHT:
- if(CClock::GetHours() > 18 || CClock::GetHours() < 7){
+ if(CClock::GetHours() > 18 || CClock::GetHours() < 7 || CWeather::WetRoads > 0.5f){){
if((CTimer::GetTimeInMilliseconds() ^ m_randomSeed) & 0x60)
lightOn = true;
else
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index 64358cbf..31f8fcbc 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -1076,13 +1076,13 @@ CPhysical::ProcessShiftSectorList(CPtrList *lists)
if(B->IsBuilding())
skipShift = false;
- else if(IsTrafficLight(A->GetModelIndex()) &&
+ else if(IsStreetLight(A->GetModelIndex()) &&
(B->IsVehicle() || B->IsPed()) &&
A->GetUp().z < 0.66f)
skipShift = true;
else if((A->IsVehicle() || A->IsPed()) &&
B->GetUp().z < 0.66f &&
- IsTrafficLight(B->GetModelIndex()))
+ IsStreetLight(B->GetModelIndex()))
skipShift = true;
// TODO: maybe flip some ifs here
else if(A->IsObject() && B->IsVehicle()){
@@ -1407,7 +1407,7 @@ CPhysical::ProcessCollisionSectorList(CPtrList *lists)
if(B->IsBuilding())
skipCollision = false;
- else if(IsTrafficLight(A->GetModelIndex()) &&
+ else if(IsStreetLight(A->GetModelIndex()) &&
(B->IsVehicle() || B->IsPed()) &&
A->GetUp().z < 0.66f){
skipCollision = true;
@@ -1415,7 +1415,7 @@ CPhysical::ProcessCollisionSectorList(CPtrList *lists)
Aobj->m_pCollidingEntity = B;
}else if((A->IsVehicle() || A->IsPed()) &&
B->GetUp().z < 0.66f &&
- IsTrafficLight(B->GetModelIndex())){
+ IsStreetLight(B->GetModelIndex())){
skipCollision = true;
A->bSkipLineCol = true;
Bobj->m_pCollidingEntity = A;