(svn r17137) -Fix (r17129): strgen complained a lot about english.txt compiled with MSVC.

This commit is contained in:
rubidium 2009-08-09 19:06:05 +00:00
parent 49c3d453be
commit ed9c01e8b0

View File

@ -806,7 +806,10 @@ static void ParseFile(const char *file, bool english)
FILE *in;
char buf[2048];
_translation = strcmp(file, _file) != 0;
/* Only look at the final filename to determine whether it's be base language or not */
const char *cur_file = strrchr(_file, PATHSEPCHAR);
const char *next_file = strrchr(file, PATHSEPCHAR);
_translation = next_file != NULL && cur_file != NULL && strcmp(cur_file, next_file) != 0;
_file = file;
/* For each new file we parse, reset the genders, and language codes */