diff options
author | aap <aap@papnet.eu> | 2020-12-16 13:25:23 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-16 13:25:23 +0100 |
commit | c4c92c357fac073c80ef256f5be005ff9ce43e7a (patch) | |
tree | c067c84abc118b44d2f429f02ad78a741f742ca7 /src/render | |
parent | Sync Frontend with miami 3/3 (diff) | |
download | re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar.gz re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar.bz2 re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar.lz re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar.xz re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.tar.zst re3-c4c92c357fac073c80ef256f5be005ff9ce43e7a.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/WaterLevel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 49fc3a22..6cd3fdad 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -62,7 +62,11 @@ CWaterLevel::Initialise(Const char *pWaterDat) #ifdef MASTER int32 hFile = -1; - while ((hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb")) < 0); + do + { + hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb"); + } + while ( hFile < 0 ); #else int32 hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb"); #endif |