From 4bfc084c4974ecff94e273a7608ebc38f1c046ab Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 23 Sep 2005 17:39:14 +0000 Subject: * Applied ajax's cleanup patch git-svn-id: svn://svn.icculus.org/quake3/trunk@101 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/botlib/be_aas_file.c | 2 +- code/botlib/be_aas_sample.c | 2 +- code/botlib/be_ai_goal.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'code/botlib') diff --git a/code/botlib/be_aas_file.c b/code/botlib/be_aas_file.c index 50d644e..f73c962 100644 --- a/code/botlib/be_aas_file.c +++ b/code/botlib/be_aas_file.c @@ -305,7 +305,7 @@ char *AAS_LoadAASLump(fileHandle_t fp, int offset, int length, int *lastoffset, AAS_Error("can't seek to aas lump\n"); AAS_DumpAASData(); botimport.FS_FCloseFile(fp); - return 0; + return NULL; } //end if } //end if //allocate memory diff --git a/code/botlib/be_aas_sample.c b/code/botlib/be_aas_sample.c index 68806eb..f12b5e0 100644 --- a/code/botlib/be_aas_sample.c +++ b/code/botlib/be_aas_sample.c @@ -1388,7 +1388,7 @@ int AAS_AreaInfo( int areanum, aas_areainfo_t *info ) //=========================================================================== aas_plane_t *AAS_PlaneFromNum(int planenum) { - if (!aasworld.loaded) return 0; + if (!aasworld.loaded) return NULL; return &aasworld.planes[planenum]; } //end of the function AAS_PlaneFromNum diff --git a/code/botlib/be_ai_goal.c b/code/botlib/be_ai_goal.c index f71bc43..c3f721a 100644 --- a/code/botlib/be_ai_goal.c +++ b/code/botlib/be_ai_goal.c @@ -146,7 +146,7 @@ fielddef_t iteminfo_fields[] = {"respawntime", ITEMINFO_OFS(respawntime), FT_FLOAT}, {"mins", ITEMINFO_OFS(mins), FT_FLOAT|FT_ARRAY, 3}, {"maxs", ITEMINFO_OFS(maxs), FT_FLOAT|FT_ARRAY, 3}, -{0, 0, 0} +{NULL, 0, 0} }; structdef_t iteminfo_struct = -- cgit v1.2.3