summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
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,