This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are no files selected for viewing
|
|
@@ -96,7 +96,7 @@ CFileLoader::LoadLevel(const char *filename) |
|
|
LoadObjectTypes(line + 4); |
|
|
}else if(strncmp(line, "IPL", 3) == 0){ |
|
|
if(!objectsLoaded){ |
|
|
// CModelInfo::ConstructMloClumps(); |
|
|
CModelInfo::ConstructMloClumps(); |
|
|
CObjectData::Initialise("DATA\\OBJECT.DAT"); |
|
|
objectsLoaded = true; |
|
|
} |
|
|
|
|
|
@@ -473,8 +473,8 @@ CCullZone::DoStuffEnteringZone_OneTreadablePlus10m(uint16 i) |
|
|
int j; |
|
|
|
|
|
if(i < 6000){ |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled = true;; |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled2 = true;; |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled = true; |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled2 = true; |
|
|
bb = CCullZones::aPointersToBigBuildingsForTreadables[i]; |
|
|
if(bb != -1) |
|
|
CPools::GetBuildingPool()->GetSlot(bb)->bZoneCulled = true; |
|
|
@@ -492,7 +492,7 @@ CCullZone::DoStuffEnteringZone_OneTreadable(uint16 i) |
|
|
int j; |
|
|
|
|
|
if(i < 6000){ |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled = true;; |
|
|
CPools::GetTreadablePool()->GetSlot(i)->bZoneCulled = true; |
|
|
bb = CCullZones::aPointersToBigBuildingsForTreadables[i]; |
|
|
if(bb != -1) |
|
|
CPools::GetBuildingPool()->GetSlot(bb)->bZoneCulled = true; |
|
|
|
|
|
@@ -121,7 +121,7 @@ CModelInfo::AddMloModel(int id) |
|
|
CMloModelInfo *modelinfo; |
|
|
modelinfo = CModelInfo::ms_mloModelStore.alloc(); |
|
|
CModelInfo::ms_modelInfoPtrs[id] = modelinfo; |
|
|
modelinfo->m_clump = 0; |
|
|
modelinfo->m_clump = nil; |
|
|
modelinfo->firstInstance = 0; |
|
|
modelinfo->lastInstance = 0; |
|
|
return modelinfo; |
|
|
@@ -218,13 +218,19 @@ CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
CStore<CInstance, MLOINSTANCESIZE>* |
|
|
CModelInfo::GetMloInstanceStore() |
|
|
{ |
|
|
return &CModelInfo::ms_mloInstanceStore; |
|
|
} |
|
|
|
|
|
void |
|
|
CModelInfo::ConstructMloClumps() |
|
|
{ |
|
|
for (int i = 0; i < ms_mloModelStore.allocPtr; i++) |
|
|
ms_mloModelStore.store[i].ConstructClump(); |
|
|
} |
|
|
|
|
|
STARTPATCHES |
|
|
InjectHook(0x50B310, CModelInfo::Initialise, PATCH_JUMP); |
|
|
InjectHook(0x50B5B0, CModelInfo::ShutDown, PATCH_JUMP); |
|
|
|
|
|
@@ -46,4 +46,5 @@ class CModelInfo |
|
|
static bool IsBikeModel(int32 id); |
|
|
static void RemoveColModelsFromOtherLevels(eLevelName level); |
|
|
static CStore<CInstance, MLOINSTANCESIZE>* CModelInfo::GetMloInstanceStore(); |
|
|
static void ConstructMloClumps(); |
|
|
}; |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.