diff options
author | tron <tron@openttd.org> | 2005-11-14 19:48:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-14 19:48:04 +0000 |
commit | f7abff5f963cddfdd134ac52ffd8e72e3ed88f0c (patch) | |
tree | a9ba5d4f3c5c47ab3857060c5f95ed482530ed97 /gfxinit.c | |
parent | d8b56c123eab7f7b48f2af3579130e366f6106ab (diff) | |
download | openttd-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.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |