diff options
author | aap <aap@papnet.eu> | 2020-12-16 13:38:09 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-16 13:38:09 +0100 |
commit | 7d89e955fe20696130fe76ed3d4582a756bd3621 (patch) | |
tree | 01ccb3a7e37447efd784aaa18598b274c80f46db /src | |
parent | more tidy water sync (diff) | |
download | re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar.gz re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar.bz2 re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar.lz re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar.xz re3-7d89e955fe20696130fe76ed3d4582a756bd3621.tar.zst re3-7d89e955fe20696130fe76ed3d4582a756bd3621.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/render/WaterLevel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 977b61f3..a0c7ae31 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -93,7 +93,11 @@ CWaterLevel::Initialise(Const char *pWaterDat) while ((line = CFileLoader::LoadLine(hFile))) { +#ifdef FIX_BUGS + if (*line && *line != ';' && !strstr(line, "* ;end of file")) +#else if (*line && *line != ';') +#endif { float z, l, b, r, t; sscanf(line, "%f %f %f %f %f", &z, &l, &b, &r, &t); |