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

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

View File

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

View File

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