summaryrefslogtreecommitdiffstats
path: root/src/core/AnimViewer.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-03 11:30:46 +0100
committeraap <aap@papnet.eu>2020-12-03 11:30:46 +0100
commit0d166081ad3a8691e54dc3256e46ba7768338da3 (patch)
tree1012f044dcffeae228e9235dc6c4da0b1981ace7 /src/core/AnimViewer.cpp
parentMerge pull request #863 from erorcun/miami (diff)
downloadre3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.gz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.bz2
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.lz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.xz
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.tar.zst
re3-0d166081ad3a8691e54dc3256e46ba7768338da3.zip
Diffstat (limited to '')
-rw-r--r--src/core/AnimViewer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp
index 2b45ce02..8b798268 100644
--- a/src/core/AnimViewer.cpp
+++ b/src/core/AnimViewer.cpp
@@ -101,6 +101,9 @@ CAnimViewer::Initialise(void) {
CStreaming::LoadAllRequestedModels(false);
CRenderer::Init();
CVehicleModelInfo::LoadVehicleColours();
+#ifdef FIX_BUGS
+ CVehicleModelInfo::LoadEnvironmentMaps();
+#endif
CAnimManager::LoadAnimFiles();
CWorld::PlayerInFocus = 0;
CWeapon::InitialiseWeapons();
@@ -310,7 +313,12 @@ CAnimViewer::Update(void)
if (pTarget->IsVehicle() || pTarget->IsPed() || pTarget->IsObject()) {
((CPhysical*)pTarget)->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
}
+#ifdef FIX_BUGS
+ // so we don't end up in the water
+ pTarget->GetMatrix().GetPosition().z = 10.0f;
+#else
pTarget->GetMatrix().GetPosition().z = 0.0f;
+#endif
if (modelInfo->GetModelType() == MITYPE_PED) {
((CPed*)pTarget)->bKindaStayInSamePlace = true;