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:
parent
88fcca886c
commit
fd5458eaed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user