summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-28 12:44:20 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-28 12:44:20 +0100
commit7eb96d53735f0f60d610d60aefdbfa4d5589c87f (patch)
treeff20bd7e6ddb5655bedecaf5ed4d404d9acfbbe7 /src/peds
parentPed: WeaponInfo: little fixes and renamings (diff)
downloadre3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.gz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.bz2
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.lz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.xz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.zst
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Population.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp
index 5dbde649..35443cb8 100644
--- a/src/peds/Population.cpp
+++ b/src/peds/Population.cpp
@@ -22,6 +22,7 @@
#include "DummyObject.h"
#include "Script.h"
#include "Shadows.h"
+#include "Bike.h"
#define MIN_CREATION_DIST 40.0f // not for start of the game (look at the GeneratePedsAtStartOfGame)
#define CREATION_RANGE 10.0f // added over the MIN_CREATION_DIST.
@@ -833,11 +834,11 @@ CPopulation::AddPedInCar(CVehicle* car)
newPed->SetCurrentWeapon(WEAPONTYPE_COLT45);
newPed->RemoveWeaponModel(CWeaponInfo::GetWeaponInfo(newPed->GetWeapon()->m_eWeaponType)->m_nModelId);
}
- /*
+
// Miami leftover
if (car->m_vehType == VEHICLE_TYPE_BIKE) {
- newPed->m_pVehicleAnim = CAnimManager::BlendAnimation(newPed->GetClump(), ASSOCGRP_STD, *((CBike*)car + 308h), 100.0f);
- } else */
+ newPed->m_pVehicleAnim = CAnimManager::BlendAnimation(newPed->GetClump(), ASSOCGRP_STD, ((CBike*)car)->m_bikeSitAnimation, 100.0f);
+ } else
// FIX: Make peds comfortable while driving car/boat
#ifdef FIX_BUGS