mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 20:44:08 +00:00
push/pop memids
This commit is contained in:
parent
f60b450ee8
commit
fb97335d9f
7 changed files with 73 additions and 17 deletions
|
@ -98,10 +98,13 @@ CFileLoader::LoadLevel(const char *filename)
|
|||
}else if(strncmp(line, "IPL", 3) == 0){
|
||||
if(!objectsLoaded){
|
||||
LoadingScreenLoadingFile("Collision");
|
||||
POP_MEMID();
|
||||
PUSH_MEMID(MEMID_WORLD);
|
||||
CObjectData::Initialise("DATA\\OBJECT.DAT");
|
||||
CStreaming::Init();
|
||||
POP_MEMID();
|
||||
PUSH_MEMID(MEMID_COLLISION);
|
||||
CColStore::LoadAllCollision();
|
||||
POP_MEMID();
|
||||
for(int i = 0; i < MODELINFOSIZE; i++)
|
||||
if(CModelInfo::GetModelInfo(i))
|
||||
CModelInfo::GetModelInfo(i)->ConvertAnimFileIndex();
|
||||
|
@ -110,12 +113,15 @@ CFileLoader::LoadLevel(const char *filename)
|
|||
PUSH_MEMID(MEMID_WORLD);
|
||||
LoadingScreenLoadingFile(line + 4);
|
||||
LoadScene(line + 4);
|
||||
POP_MEMID();
|
||||
}else if(strncmp(line, "SPLASH", 6) == 0){
|
||||
#ifndef DISABLE_LOADING_SCREEN
|
||||
LoadSplash(GetRandomSplashScreen());
|
||||
#endif
|
||||
#ifndef GTA_PS2
|
||||
}else if(strncmp(line, "CDIMAGE", 7) == 0){
|
||||
CdStreamAddImage(line + 8);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue