purple nines glitch fix

This commit is contained in:
Nikolay Korolev 2020-03-21 14:29:03 +03:00
parent 31d16d395e
commit 795e07c882
2 changed files with 5 additions and 3 deletions

View File

@ -23,6 +23,10 @@ void CGangs::Initialize(void)
Gang[GANG_HOODS].m_nVehicleMI = MI_HOODS; Gang[GANG_HOODS].m_nVehicleMI = MI_HOODS;
Gang[GANG_7].m_nVehicleMI = -1; Gang[GANG_7].m_nVehicleMI = -1;
Gang[GANG_8].m_nVehicleMI = -1; Gang[GANG_8].m_nVehicleMI = -1;
#ifdef FIX_BUGS
for (int i = 0; i < NUM_GANGS; i++)
Gang[i].m_nPedModelOverride = -1;
#endif
} }
void CGangs::SetGangVehicleModel(int16 gang, int32 model) void CGangs::SetGangVehicleModel(int16 gang, int32 model)

View File

@ -6,8 +6,6 @@ struct CGangInfo
{ {
int32 m_nVehicleMI; int32 m_nVehicleMI;
int8 m_nPedModelOverride; int8 m_nPedModelOverride;
int8 field_5;
int16 field_6;
eWeaponType m_Weapon1; eWeaponType m_Weapon1;
eWeaponType m_Weapon2; eWeaponType m_Weapon2;
@ -46,6 +44,6 @@ public:
static CGangInfo* GetGangInfo(int16 gang) { return &Gang[gang]; } static CGangInfo* GetGangInfo(int16 gang) { return &Gang[gang]; }
private: private:
static CGangInfo(&Gang)[NUM_GANGS]; static CGangInfo(&Gang)[NUM_GANGS];
}; };