Mercurial > hg > openttd
changeset 14443:0accf5b8ff60 draft
(svn r19000) -Cleanup: remove redundant check
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 04 Feb 2010 00:40:11 +0000 |
parents | f3556f9ad290 |
children | 548a0484831c |
files | src/fileio.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -279,7 +279,7 @@ /* Be, as opening files, aware that sometimes the filename * might be in uppercase when it is in lowercase on the * disk. Ofcourse Windows doesn't care about casing. */ - strtolower(buf + ((subdir == NO_DIRECTORY) ? 0 : strlen(_searchpaths[sp]) - 1)); + strtolower(buf + strlen(_searchpaths[sp]) - 1); if (FileExists(buf)) break; #endif }