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 = "";
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user