mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	in history::progress, progress_each is now configurable
This commit is contained in:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue