fix warning
only enable the clock counter errors in debug
This commit is contained in:
parent
f51ab9b75e
commit
315ab418d2
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue