summaryrefslogtreecommitdiff
path: root/gfxinit.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 19:48:04 +0000
committertron <tron@openttd.org>2005-11-14 19:48:04 +0000
commitf7abff5f963cddfdd134ac52ffd8e72e3ed88f0c (patch)
treea9ba5d4f3c5c47ab3857060c5f95ed482530ed97 /gfxinit.c
parentd8b56c123eab7f7b48f2af3579130e366f6106ab (diff)
downloadopenttd-f7abff5f963cddfdd134ac52ffd8e72e3ed88f0c.tar.xz
(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
Diffstat (limited to 'gfxinit.c')
-rw-r--r--gfxinit.c8
1 files changed, 3 insertions, 5 deletions
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