diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-23 17:39:14 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-23 17:39:14 +0000 |
commit | 4bfc084c4974ecff94e273a7608ebc38f1c046ab (patch) | |
tree | c22cc0f88365f625da447e3609cc1951fb7590eb /code/botlib | |
parent | 4b080c5906fdb1f7ee4e7fe5fdf2375dfcdf5ff4 (diff) | |
download | ioquake3-aero-4bfc084c4974ecff94e273a7608ebc38f1c046ab.tar.gz ioquake3-aero-4bfc084c4974ecff94e273a7608ebc38f1c046ab.zip |
* Applied ajax's cleanup patch
git-svn-id: svn://svn.icculus.org/quake3/trunk@101 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/botlib')
-rw-r--r-- | code/botlib/be_aas_file.c | 2 | ||||
-rw-r--r-- | code/botlib/be_aas_sample.c | 2 | ||||
-rw-r--r-- | code/botlib/be_ai_goal.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 = |