summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-07 10:18:35 +0200
committerGitHub <noreply@github.com>2020-08-07 10:18:35 +0200
commit40185161b83091e79455acf6fe82f070e26c6662 (patch)
tree87ae90e9dc46c746d0a4819286ce1b965c3f91fa /src/vehicles/Automobile.cpp
parentMerge pull request #668 from majesticCoding/miami (diff)
parentUpdate CutsceneShadow.h (diff)
downloadre3-40185161b83091e79455acf6fe82f070e26c6662.tar
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.gz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.bz2
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.lz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.xz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.zst
re3-40185161b83091e79455acf6fe82f070e26c6662.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 3f329251..e06ce03b 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -2505,8 +2505,12 @@ CAutomobile::PreRender(void)
// end of lights
}
-//TODO(MIAMI): StoreShadowForVehicle once we have it
- CShadows::StoreShadowForCar(this);
+ if (IsRealHeli())
+ CShadows::StoreShadowForVehicle(this, VEH_SHD_TYPE_HELI);
+ else if ( GetModelIndex() == MI_RCBARON)
+ CShadows::StoreShadowForVehicle(this, VEH_SHD_TYPE_RCPLANE);
+ else
+ CShadows::StoreShadowForVehicle(this, VEH_SHD_TYPE_CAR);
DoSunGlare();