summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 16:14:01 +0200
committerGitHub <noreply@github.com>2020-05-05 16:14:01 +0200
commitfcd386f55d54b84a22540c106ba53f60b7c9b5f5 (patch)
tree4263c1f88eb693268e4b75104a5b2430b6dff580 /src/modelinfo/ModelInfo.cpp
parentfixed traffic lights (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar.gz
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar.bz2
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar.lz
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar.xz
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.tar.zst
re3-fcd386f55d54b84a22540c106ba53f60b7c9b5f5.zip
Diffstat (limited to '')
-rw-r--r--src/modelinfo/ModelInfo.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp
index da09bdfa..62deae2b 100644
--- a/src/modelinfo/ModelInfo.cpp
+++ b/src/modelinfo/ModelInfo.cpp
@@ -200,6 +200,20 @@ CModelInfo::GetModelInfo(const char *name, int *id)
return nil;
}
+#ifdef MIAMI
+CBaseModelInfo*
+CModelInfo::GetModelInfo(const char *name, int minIndex, int maxIndex)
+{
+ CBaseModelInfo *modelinfo;
+ for(int i = minIndex; i <= maxIndex; i++){
+ modelinfo = CModelInfo::ms_modelInfoPtrs[i];
+ if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name))
+ return modelinfo;
+ }
+ return nil;
+}
+#endif
+
bool
CModelInfo::IsBoatModel(int32 id)
{
@@ -214,6 +228,7 @@ CModelInfo::IsBikeModel(int32 id)
((CVehicleModelInfo*)GetModelInfo(id))->m_vehicleType == VEHICLE_TYPE_BIKE;
}
+#ifndef MIAMI
void
CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level)
{
@@ -230,6 +245,7 @@ CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level)
}
}
}
+#endif
void
CModelInfo::ConstructMloClumps()