;end of fucking waterlevel

This commit is contained in:
aap 2020-12-16 13:38:09 +01:00
parent c42463bf4e
commit 7d89e955fe

View file

@ -93,7 +93,11 @@ CWaterLevel::Initialise(Const char *pWaterDat)
while ((line = CFileLoader::LoadLine(hFile))) while ((line = CFileLoader::LoadLine(hFile)))
{ {
#ifdef FIX_BUGS
if (*line && *line != ';' && !strstr(line, "* ;end of file"))
#else
if (*line && *line != ';') if (*line && *line != ';')
#endif
{ {
float z, l, b, r, t; float z, l, b, r, t;
sscanf(line, "%f %f %f %f %f", &z, &l, &b, &r, &t); sscanf(line, "%f %f %f %f %f", &z, &l, &b, &r, &t);