diff options
author | Patric Stout <truebrain@openttd.org> | 2019-03-10 16:41:01 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-03-11 10:16:00 +0100 |
commit | 7adae09897c6f17a60de9468e9e11d166ff52278 (patch) | |
tree | 384a80857b497ee0b2393e515f91309e2593b765 /src/saveload | |
parent | dcc5183dd0b1eba4163211a3c28f5acc4579e8fd (diff) | |
download | openttd-7adae09897c6f17a60de9468e9e11d166ff52278.tar.xz |
Codechange: liblzma is called liblzma, how ever strange that might be
It is the only library we use that calls itself with 'lib' in the
name. This might be confusing, but with the arrival of cmake a lot
of these things are automated. And detection will find 'liblzma',
not 'lzma', like with 'lzo', 'zlib', ..
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index bff85dfc6..cd30ed859 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -2153,7 +2153,7 @@ struct ZlibSaveFilter : SaveFilter { ********** START OF LZMA CODE ************** ********************************************/ -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) #include <lzma.h> /** @@ -2266,7 +2266,7 @@ struct LZMASaveFilter : SaveFilter { } }; -#endif /* WITH_LZMA */ +#endif /* WITH_LIBLZMA */ /******************************************* ************* END OF CODE ***************** @@ -2303,7 +2303,7 @@ static const SaveLoadFormat _saveload_formats[] = { #else {"zlib", TO_BE32X('OTTZ'), NULL, NULL, 0, 0, 0}, #endif -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) /* Level 2 compression is speed wise as fast as zlib level 6 compression (old default), but results in ~10% smaller saves. * Higher compression levels are possible, and might improve savegame size by up to 25%, but are also up to 10 times slower. * The next significant reduction in file size is at level 4, but that is already 4 times slower. Level 3 is primarily 50% |