fix warning

only enable the clock counter errors in debug
This commit is contained in:
Jonathan 2022-10-02 16:20:27 -04:00
parent f51ab9b75e
commit 315ab418d2
3 changed files with 5 additions and 2 deletions

View File

@ -191,12 +191,14 @@ void percent_clock::print()
}
ready = false;
#ifdef _DEBUG
if (max != indeterminate) {
if (count != max) {
logging::print("ERROR TO FIX LATER: clock counter ended too early\n");
}
}
#endif
percent(max, max, displayElapsed);
}

View File

@ -149,9 +149,11 @@ struct percent_clock
// increase count by 1
inline void increase()
{
#ifdef _DEBUG
if (count == max) {
logging::print("ERROR TO FIX LATER: clock counter increased to end, but not finished yet\n");
}
#endif
percent(count++, max, displayElapsed);
}

View File

@ -6,7 +6,6 @@
class mapbrush_t;
struct mapface_t;
class mapface_t;
class mapentity_t;
const mapface_t *Mapbrush_FirstFaceWithTextureName(const mapbrush_t &brush, const std::string &texname);