mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 18:36:24 +00:00
Make CBaseModelInfo fields protected
This commit is contained in:
@ -84,12 +84,11 @@ static int32 NextValidModelId(int32 mi, int32 step)
|
||||
CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo;
|
||||
if (!pInfo)
|
||||
continue;
|
||||
if (pInfo->m_type == MITYPE_PED
|
||||
if (pInfo->GetModelType() == MITYPE_PED
|
||||
#ifdef FIX_BUGS
|
||||
&& !(i >= MI_SPECIAL01 && i <= MI_SPECIAL04)
|
||||
#endif
|
||||
||
|
||||
pInfo->m_type == MITYPE_VEHICLE &&
|
||||
|| pInfo->GetModelType() == MITYPE_VEHICLE &&
|
||||
#ifdef FIX_BUGS
|
||||
(pVehicleInfo->m_vehicleType == VEHICLE_TYPE_CAR || pVehicleInfo->m_vehicleType == VEHICLE_TYPE_BOAT))
|
||||
#else // && and || priority failure it seems, also crashes on special models
|
||||
|
@ -8074,7 +8074,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
|
||||
continue;
|
||||
// desperatly want to believe this was inlined :|
|
||||
CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model);
|
||||
assert(pInfo->m_type == MITYPE_VEHICLE);
|
||||
assert(pInfo->GetModelType() == MITYPE_VEHICLE);
|
||||
CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo;
|
||||
if (pVehicleInfo->m_vehicleType != VEHICLE_TYPE_CAR) {
|
||||
switch (model) {
|
||||
|
Reference in New Issue
Block a user