mirror of
https://github.com/halpz/re3.git
synced 2025-07-07 00:58:55 +00:00
Merge branch 'miami' into lcs
* miami: Use original names
This commit is contained in:
@ -50,8 +50,8 @@ public:
|
||||
bool IsBuilding(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; }
|
||||
bool IsSimple(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME || m_type == MITYPE_WEAPON; }
|
||||
bool IsClump(void) { return m_type == MITYPE_CLUMP || m_type == MITYPE_PED || m_type == MITYPE_VEHICLE; }
|
||||
char *GetName(void) { return m_name; }
|
||||
void SetName(const char *name) { strncpy(m_name, name, MAX_MODEL_NAME); }
|
||||
char *GetModelName(void) { return m_name; }
|
||||
void SetModelName(const char *name) { strncpy(m_name, name, MAX_MODEL_NAME); }
|
||||
void SetColModel(CColModel *col, bool owns = false){
|
||||
m_colModel = col; m_bOwnsColModel = owns; }
|
||||
CColModel *GetColModel(void) { return m_colModel; }
|
||||
|
@ -189,7 +189,7 @@ CModelInfo::GetModelInfo(const char *name, int *id)
|
||||
CBaseModelInfo *modelinfo;
|
||||
for(int i = 0; i < MODELINFOSIZE; i++){
|
||||
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name)){
|
||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name)){
|
||||
if(id)
|
||||
*id = i;
|
||||
return modelinfo;
|
||||
@ -207,7 +207,7 @@ 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))
|
||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name))
|
||||
return modelinfo;
|
||||
}
|
||||
return nil;
|
||||
|
@ -48,7 +48,7 @@ CPedModelInfo::SetClump(RpClump *clump)
|
||||
if(m_hitColModel == nil)
|
||||
CreateHitColModelSkinned(clump);
|
||||
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPedCB);
|
||||
if(strcmp(GetName(), "player") == 0)
|
||||
if(strcmp(GetModelName(), "player") == 0)
|
||||
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ CSimpleModelInfo::FindRelatedModel(int32 minID, int32 maxID)
|
||||
for(i = minID; i <= maxID; i++){
|
||||
mi = CModelInfo::GetModelInfo(i);
|
||||
if(mi && mi != this &&
|
||||
!CGeneral::faststrcmp(GetName()+3, mi->GetName()+3)){
|
||||
!CGeneral::faststrcmp(GetModelName()+3, mi->GetModelName()+3)){
|
||||
assert(mi->IsSimple());
|
||||
this->SetRelatedModel((CSimpleModelInfo*)mi);
|
||||
return;
|
||||
@ -189,7 +189,7 @@ CSimpleModelInfo::SetupBigBuilding(int32 minID, int32 maxID)
|
||||
m_lodDistances[2] = related->GetLargestLodDistance()/TheCamera.LODDistMultiplier;
|
||||
if(m_drawLast){
|
||||
m_drawLast = false;
|
||||
debug("%s was draw last\n", GetName());
|
||||
debug("%s was draw last\n", GetModelName());
|
||||
}
|
||||
}else
|
||||
m_lodDistances[2] = NEAR_DRAW_DIST;
|
||||
|
@ -11,7 +11,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
|
||||
char *p;
|
||||
int i;
|
||||
|
||||
strcpy(name, GetName());
|
||||
strcpy(name, GetModelName());
|
||||
// change _nt to _dy
|
||||
if(p = strstr(name, "_nt"))
|
||||
strncpy(p, "_dy", 4);
|
||||
@ -24,7 +24,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
|
||||
for(i = 0; i < MODELINFOSIZE; i++){
|
||||
CBaseModelInfo *mi = CModelInfo::GetModelInfo(i);
|
||||
if (mi && mi->GetModelType() == MITYPE_TIME &&
|
||||
!CGeneral::faststrncmp(name, mi->GetName(), MAX_MODEL_NAME)){
|
||||
!CGeneral::faststrncmp(name, mi->GetModelName(), MAX_MODEL_NAME)){
|
||||
m_otherTimeModelID = i;
|
||||
return (CTimeModelInfo*)mi;
|
||||
}
|
||||
|
Reference in New Issue
Block a user