Skip to content
Snippets Groups Projects
Commit ebd011db authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment