From f7abff5f963cddfdd134ac52ffd8e72e3ed88f0c Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 14 Nov 2005 19:48:04 +0000 Subject: (svn r3181) -Bracing -Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if --- gfxinit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gfxinit.c') diff --git a/gfxinit.c b/gfxinit.c index 5e0aa3669..9977536f0 100644 --- a/gfxinit.c +++ b/gfxinit.c @@ -145,7 +145,7 @@ static bool FileMD5(const MD5File file, bool warn) fclose(f); md5_finish(&filemd5state, digest); - return CheckMD5Digest(file, digest, warn); + return CheckMD5Digest(file, digest, warn); } else { // file not found return false; } @@ -321,11 +321,9 @@ static byte _sprite_page_to_load = 0xFF; static void LoadSpriteTables(void) { - uint load_index = 0; + const FileList* files = _use_dos_palette ? &files_dos : &files_win; + uint load_index; uint i; - const FileList *files; // list of grf files to be loaded. Either Windows files or DOS files - - files = _use_dos_palette? &files_dos : &files_win; LoadGrfIndexed(files->basic[0].filename, trg1idx, 0); DupSprite( 2, 130); // non-breaking space medium -- cgit v1.2.3-70-g09d2