diff --git a/inc/control.h b/inc/control.h index 068d758..568157f 100644 --- a/inc/control.h +++ b/inc/control.h @@ -175,6 +175,10 @@ public: m_ent = ent; } + void resetFlushTimestamp () { + m_printQueueFlushTimestamp = 0.0f; + } + int intValue (size_t arg) const { if (!hasArg (arg)) { return 0; diff --git a/src/engine.cpp b/src/engine.cpp index 6a355dd..175d447 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -84,6 +84,9 @@ void Game::levelInitialize (edict_t *entities, int max) { // install the sendto hook to fake queries util.installSendTo (); + + // flush any print queue + ctrl.resetFlushTimestamp (); // go thru the all entities on map, and do whatever we're want for (int i = 0; i < max; ++i) {