summaryrefslogtreecommitdiffstats
path: root/src/FileLoader.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-30 13:37:52 +0200
committerGitHub <noreply@github.com>2019-06-30 13:37:52 +0200
commit9b5a7cd4bb6d106e10e4502f123814f4ece44a2f (patch)
tree3ca33433362742fad0a4342b1047f992c70602c9 /src/FileLoader.cpp
parentMerge pull request #77 from Nick007J/master (diff)
parentCleanup project a bit (diff)
downloadre3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar.gz
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar.bz2
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar.lz
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar.xz
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.tar.zst
re3-9b5a7cd4bb6d106e10e4502f123814f4ece44a2f.zip
Diffstat (limited to 'src/FileLoader.cpp')
-rw-r--r--src/FileLoader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FileLoader.cpp b/src/FileLoader.cpp
index 8213a5c7..8bc6ad11 100644
--- a/src/FileLoader.cpp
+++ b/src/FileLoader.cpp
@@ -38,7 +38,7 @@ void
LoadingScreenLoadingFile(const char *filename)
{
sprintf(gString, "Loading %s", GetFilename(filename));
- LoadingScreen("Loading the Game", gString, 0);
+ LoadingScreen("Loading the Game", gString, nil);
}
void
@@ -144,7 +144,7 @@ CFileLoader::LoadLine(int fd)
int i;
char *line;
- if(CFileMgr::ReadLine(fd, ms_line, 256) == nil)
+ if(CFileMgr::ReadLine(fd, ms_line, 256) == false)
return nil;
for(i = 0; ms_line[i] != '\0'; i++)
if(ms_line[i] < ' ' || ms_line[i] == ',')
@@ -311,7 +311,7 @@ CFileLoader::FindRelatedModelInfoCB(RpAtomic *atomic, void *data)
nodename = GetFrameNodeName(RpClumpGetFrame(atomic));
GetNameAndLOD(nodename, name, &n);
- mi = (CSimpleModelInfo*)CModelInfo::GetModelInfo(name, 0);
+ mi = (CSimpleModelInfo*)CModelInfo::GetModelInfo(name, nil);
if(mi){
assert(mi->IsSimple());
mi->SetAtomic(n, atomic);
@@ -360,7 +360,7 @@ CFileLoader::LoadClumpFile(const char *filename)
if(clump){
nodename = GetFrameNodeName(RpClumpGetFrame(clump));
GetNameAndLOD(nodename, name, &n);
- mi = (CClumpModelInfo*)CModelInfo::GetModelInfo(name, 0);
+ mi = (CClumpModelInfo*)CModelInfo::GetModelInfo(name, nil);
assert(mi->IsClump());
if(mi)
mi->SetClump(clump);
@@ -457,7 +457,7 @@ CFileLoader::SetRelatedModelInfoCB(RpAtomic *atomic, void *data)
RpClumpRemoveAtomic(clump, atomic);
RpAtomicSetFrame(atomic, RwFrameCreate());
CVisibilityPlugins::SetAtomicModelInfo(atomic, gpRelatedModelInfo);
- CVisibilityPlugins::SetAtomicRenderCallback(atomic, 0);
+ CVisibilityPlugins::SetAtomicRenderCallback(atomic, nil);
return atomic;
}