mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	no more crash when view by negative distance
This commit is contained in:
		| @@ -605,6 +605,7 @@ EX void viewdist_configure_dialog() { | ||||
|   dialog::add_action([] () {  | ||||
|     scrolling_distances = false; | ||||
|     dialog::editNumber(first_distance, 0, 3000, 1, 0, XLAT("display distances from"), ""); | ||||
|     dialog::bound_low(0); | ||||
|     }); | ||||
|  | ||||
|   int id = 0; | ||||
| @@ -679,6 +680,7 @@ void expansion_analyzer::view_distances_dialog() { | ||||
|     scrolltime %= scrollspeed; | ||||
|     } | ||||
|   lastticks = SDL_GetTicks(); | ||||
|   if(first_distance < 0) first_distance = 0; | ||||
|    | ||||
|   dynamicval<color_t> dv(distcolors[0], forecolor); | ||||
|   dialog::init(""); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue