1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-07-03 00:07:06 +00:00

now fixed properly

This commit is contained in:
Nikolay Korolev 2020-09-26 21:35:09 +03:00
parent 3c5624bc56
commit c5699a9b30

View file

@ -10098,11 +10098,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
model = CStreaming::ms_vehiclesLoaded[index]; model = CStreaming::ms_vehiclesLoaded[index];
if (model == -1) if (model == -1)
continue; continue;
// desperatly want to believe this was inlined :| if (CModelInfo::IsCarModel(model) || CModelInfo::IsBikeModel(model)) {
CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model);
script_assert(pInfo->GetModelType() == MITYPE_VEHICLE);
CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo;
if (pVehicleInfo->m_vehicleType == VEHICLE_TYPE_CAR || pVehicleInfo->m_vehicleType == VEHICLE_TYPE_BIKE) {
switch (model) { switch (model) {
case MI_LANDSTAL: case MI_LANDSTAL:
case MI_LINERUN: case MI_LINERUN: