Commit ebd011db authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Always display a progress() output for count value of 0

This is normally the first count value and even if we *just* output a progress() for a previous operation, we still want the first progress() call for the operation to display.
parent 1dd6ec7e
......@@ -1399,7 +1399,7 @@ void sbbs_t::progress(const char* text, int count, int total, int interval)
if(cfg.node_num == 0)
return; // Don't output this for events
double now = xp_timer();
if(count < total && (now - last_progress) * 1000 < interval)
if(count > 0 && count < total && (now - last_progress) * 1000 < interval)
return;
if(text == NULL) text = "";
float pct = total ? ((float)count/total)*100.0F : 100.0F;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment