From fd5458eaed255aa21775a0024c4e9f2f3bd96dbb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 8 Jun 2022 18:01:23 +0200 Subject: [PATCH] in history::progress, progress_each is now configurable --- history.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/history.cpp b/history.cpp index 784eee33..4ffa3bb8 100644 --- a/history.cpp +++ b/history.cpp @@ -194,10 +194,12 @@ EX namespace history { mouseovers = ""; } + EX int progress_each = 250; + EX void progress(string str) { #if CAP_SDL int tick = SDL_GetTicks(); - if(tick > lastprogress + 250) { + if(tick > lastprogress + progress_each) { lastprogress = tick; msgs.clear(); addMessage(str);