From ebd011dbf574b814e87a788b4d1adaf2efd2b667 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 11 Jun 2022 13:08:04 -0700
Subject: [PATCH] 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.
---
 src/sbbs3/con_out.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp
index c96f355194..292dc00dbe 100644
--- a/src/sbbs3/con_out.cpp
+++ b/src/sbbs3/con_out.cpp
@@ -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;
-- 
GitLab