1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

in history::progress, progress_each is now configurable

This commit is contained in:
Zeno Rogue 2022-06-08 18:01:23 +02:00
parent 88fcca886c
commit fd5458eaed

View File

@ -194,10 +194,12 @@ EX namespace history {
mouseovers = ""; mouseovers = "";
} }
EX int progress_each = 250;
EX void progress(string str) { EX void progress(string str) {
#if CAP_SDL #if CAP_SDL
int tick = SDL_GetTicks(); int tick = SDL_GetTicks();
if(tick > lastprogress + 250) { if(tick > lastprogress + progress_each) {
lastprogress = tick; lastprogress = tick;
msgs.clear(); msgs.clear();
addMessage(str); addMessage(str);