File diff r4199:5df85f8a4438 → r4200:4e5f339514ce
gfxinit.c
Show inline comments
 
@@ -9,6 +9,7 @@
 
#include "spritecache.h"
 
#include "table/sprites.h"
 
#include "fileio.h"
 
#include "string.h"
 
#include "newgrf.h"
 
#include "md5.h"
 
#include "variables.h"
 
@@ -123,10 +124,7 @@ static bool FileMD5(const MD5File file, 
 

	
 
#if !defined(WIN32)
 
	if (f == NULL) {
 
		char *s;
 
	// make lower case and check again
 
		for (s = buf + strlen(_path.data_dir) - 1; *s != '\0'; s++)
 
			*s = tolower(*s);
 
		strtolower(buf + strlen(_path.data_dir) - 1);
 
		f = fopen(buf, "rb");
 
	}
 
#endif