summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 19:27:37 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 19:27:37 +0100
commit783d1edaf1643298bd101d938f60e0bee4712ac5 (patch)
treecdbd1ef6fca23a6ef26ba05e2160d848d96323ef /src/audio
parentMerge pull request #897 from Sergeanur/VC/aud (diff)
downloadre3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar.gz
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar.bz2
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar.lz
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar.xz
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.tar.zst
re3-783d1edaf1643298bd101d938f60e0bee4712ac5.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 49fb1d8d..2591d6a8 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -149,16 +149,27 @@ public:
class cVehicleParams
{
public:
- uint8 m_VehicleType;
+ int32 m_VehicleType;
bool m_bDistanceCalculated;
float m_fDistance;
CVehicle *m_pVehicle;
cTransmission *m_pTransmission;
int32 m_nIndex;
float m_fVelocityChange;
+
+ cVehicleParams()
+ {
+ m_VehicleType = -1;
+ m_bDistanceCalculated = false;
+ m_fDistance = 0.0f;
+ m_pVehicle = 0;
+ m_pTransmission = nil;
+ m_nIndex = 0;
+ m_fVelocityChange = 0.0f;
+ }
};
-VALIDATE_SIZE(cVehicleParams, 0x18);
+VALIDATE_SIZE(cVehicleParams, 0x1C);
enum {
REFLECTION_NORTH = 0,