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 | |
parent | 23b5e664dcd5c178c6f7d4c06bc0e12057d898c9 (diff) |
tidy water sync
-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 |