Changeset - r23457:01a7066d4629
[Not reviewed]
master
0 1 0
Patric Stout - 5 years ago 2019-03-10 15:47:34
truebrain@openttd.org
Codechange: check if a define is set directly, instead of indirectly

config.lib happens to set GLOBAL_DATA_DIR in case it is not DOS
and not OS2, but this kind of deduction is annoying to maintain.
It is better to just check if the define you want to use is set,
and leave it to config.lib to set it or not depending on the OS.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -1121,7 +1121,7 @@ void DetermineBasePaths(const char *exe)
 
		}
 
	}
 

	
 
#if defined(DOS) || defined(OS2)
 
#if !defined(GLOBAL_DATA_DIR)
 
	_searchpaths[SP_INSTALLATION_DIR] = NULL;
 
#else
 
	seprintf(tmp, lastof(tmp), "%s", GLOBAL_DATA_DIR);
0 comments (0 inline, 0 general)