mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r17137) -Fix (r17129): strgen complained a lot about english.txt compiled with MSVC.
This commit is contained in:
parent
49c3d453be
commit
ed9c01e8b0
@ -806,7 +806,10 @@ static void ParseFile(const char *file, bool english)
|
|||||||
FILE *in;
|
FILE *in;
|
||||||
char buf[2048];
|
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;
|
_file = file;
|
||||||
|
|
||||||
/* For each new file we parse, reset the genders, and language codes */
|
/* For each new file we parse, reset the genders, and language codes */
|
||||||
|
Loading…
Reference in New Issue
Block a user