mirror of
https://github.com/halpz/re3.git
synced 2025-07-26 03:22:43 +00:00
Overhaul MusicManager - fix radio bugs, scroll to prev station, radio off text
This commit is contained in:
@ -152,7 +152,7 @@ CVehicle::CVehicle(uint8 CreatedBy)
|
||||
m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, this);
|
||||
if(m_audioEntityId >= 0)
|
||||
DMAudio.SetEntityStatus(m_audioEntityId, true);
|
||||
//m_nRadioStation = CGeneral::GetRandomNumber() % USERTRACK;
|
||||
//m_nRadioStation = CGeneral::GetRandomNumber() % NUM_RADIOS;
|
||||
switch(GetModelIndex()){
|
||||
case MI_HUNTER:
|
||||
case MI_ANGEL:
|
||||
@ -169,7 +169,7 @@ CVehicle::CVehicle(uint8 CreatedBy)
|
||||
m_nRadioStation = RADIO_OFF;
|
||||
break;
|
||||
default:
|
||||
m_nRadioStation = CGeneral::GetRandomNumber() % USERTRACK;
|
||||
m_nRadioStation = CGeneral::GetRandomNumber() % NUM_RADIOS;
|
||||
break;
|
||||
}
|
||||
m_pCurGroundEntity = nil;
|
||||
|
@ -266,7 +266,7 @@ public:
|
||||
eCarLock m_nDoorLock;
|
||||
int8 m_nLastWeaponDamage; // see eWeaponType, -1 if no damage
|
||||
CEntity *m_pLastDamageEntity;
|
||||
int8 m_nRadioStation;
|
||||
uint8 m_nRadioStation;
|
||||
uint8 m_bRainAudioCounter;
|
||||
uint8 m_bRainSamplesCounter;
|
||||
uint32 m_nCarHornTimer;
|
||||
|
Reference in New Issue
Block a user