diff --git a/src/r_data.c b/src/r_data.c index 8fc6ed333..b4ae9eeae 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -49,10 +49,10 @@ size_t numspritelumps, max_spritelumps; // needed for pre rendering -sprcache_t *spritecachedinfo; +sprcache_t *spritecachedinfo = NULL; -lighttable_t *colormaps; -UINT8 *encoremap; +lighttable_t *colormaps = NULL; +UINT8 *encoremap = NULL; // for debugging/info purposes size_t flatmemory, spritememory, texturememory; diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 93bc197e1..976f92c18 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -52,15 +52,15 @@ consvar_t cv_parallelsoftware = CVAR_INIT ("parallelsoftware", "On", CV_SAVE, CV //SoM: 3/23/2000: Use Boom visplane hashing. -visplane_t *visplanes[MAXVISPLANES]; +visplane_t *visplanes[MAXVISPLANES] = {}; static visplane_t *freetail; static visplane_t **freehead = &freetail; visplane_t *floorplane; visplane_t *ceilingplane; -visffloor_t ffloor[MAXFFLOORS]; -INT32 numffloors; +visffloor_t ffloor[MAXFFLOORS] ={}; +INT32 numffloors = 0; //SoM: 3/23/2000: Boom visplane hashing routine. #define visplane_hash(picnum,lightlevel,height) \ @@ -92,7 +92,7 @@ static INT32 spanstart[MAXVIDHEIGHT]; // (when mouselookin', yslope is moving into yslopetab) // Check R_SetupFrame, R_SetViewSize for more... fixed_t yslopetab[MAXSPLITSCREENPLAYERS][MAXVIDHEIGHT*16]; -fixed_t *yslope; +fixed_t *yslope = NULL; // // R_InitPlanes diff --git a/src/r_textures.c b/src/r_textures.c index a3bcf3973..64324a708 100644 --- a/src/r_textures.c +++ b/src/r_textures.c @@ -53,11 +53,11 @@ UINT32 **texturecolumnofs; // column offset lookup table for each texture UINT8 **texturecache; // graphics data for each generated full-size texture UINT8 **texturebrightmapcache; // graphics data for brightmap converted for use with a specific texture -INT32 *texturewidth; -fixed_t *textureheight; // needed for texture pegging +INT32 *texturewidth = NULL; +fixed_t *textureheight = NULL; // needed for texture pegging -INT32 *texturetranslation; -INT32 *texturebrightmaps; +INT32 *texturetranslation = NULL; +INT32 *texturebrightmaps = NULL; INT32 g_texturenum_dbgline;