Cleanups from pomac!

This commit is contained in:
Zachary Slater 2005-09-02 20:13:47 +00:00
parent b0fc4a7b6e
commit f327407bb8
36 changed files with 155 additions and 195 deletions

View file

@ -174,7 +174,7 @@ static void R_LoadLightmaps( lump_t *l ) {
float g = buf_p[j*3+1];
float b = buf_p[j*3+2];
float intensity;
float out[3];
float out[3] = {0.0, 0.0, 0.0};
intensity = 0.33f * r + 0.685f * g + 0.063f * b;

View file

@ -360,7 +360,9 @@ R_SubdividePatchToGrid
srfGridMesh_t *R_SubdividePatchToGrid( int width, int height,
drawVert_t points[MAX_PATCH_SIZE*MAX_PATCH_SIZE] ) {
int i, j, k, l;
drawVert_t prev, next, mid;
drawVert_t_cleared( prev );
drawVert_t_cleared( next );
drawVert_t_cleared( mid );
float len, maxLen;
int dir;
int t;

View file

@ -298,7 +298,7 @@ static glyphInfo_t *RE_ConstructGlyphInfo(unsigned char *imageOut, int *xOut, in
static int fdOffset;
static byte *fdFile;
int readInt() {
int readInt( void ) {
int i = fdFile[fdOffset]+(fdFile[fdOffset+1]<<8)+(fdFile[fdOffset+2]<<16)+(fdFile[fdOffset+3]<<24);
fdOffset += 4;
return i;
@ -309,7 +309,7 @@ typedef union {
float ffred;
} poor;
float readFloat() {
float readFloat( void ) {
poor me;
#if __WORD_ORDER == __BIG_ENDIAN
me.fred[0] = fdFile[fdOffset+3];

View file

@ -1601,8 +1601,8 @@ void RE_EndFrame( int *frontEndMsec, int *backEndMsec );
void SaveJPG(char * filename, int quality, int image_width, int image_height, unsigned char *image_buffer);
// font stuff
void R_InitFreeType();
void R_DoneFreeType();
void R_InitFreeType( void );
void R_DoneFreeType( void );
void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font);

View file

@ -810,7 +810,7 @@ void RB_CalcFogTexCoords( float *st ) {
qboolean eyeOutside;
fog_t *fog;
vec3_t local;
vec4_t fogDistanceVector, fogDepthVector;
vec4_t fogDistanceVector, fogDepthVector = {0, 0, 0, 0};
fog = tr.world->fogs + tess.fogNum;

View file

@ -43,7 +43,7 @@ static char **shaderTextHashTable[MAX_SHADERTEXT_HASH];
return a hash value for the filename
================
*/
#warning TODO: check if long is ok here
#warning TODO: check if long is ok here
static long generateHashValue( const char *fname, const int size ) {
int i;
long hash;