mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Fix a typo-bug detected by Clang.
./rogueviz.cpp:1721:47: error: implicit conversion from 'double' to 'int'
      changes value from 0.2 to 0 [-Werror,-Wliteral-conversion]
            dialog::editNumber(i, 1, 1000000, .2, 500, s3, "");
            ~~~~~~                            ^~
			
			
This commit is contained in:
		| @@ -1718,7 +1718,7 @@ void configure_edge_display() { | ||||
|           dialog::add_action([t,s3] { | ||||
|             static int i; | ||||
|             i = 1 / t->visible_from; | ||||
|             dialog::editNumber(i, 1, 1000000, .2, 500, s3, ""); | ||||
|             dialog::editNumber(i, 1, 1000000, 1, 500, s3, ""); | ||||
|             dialog::reaction = [t] () { t->visible_from = i ? 1. / i : 5; }; | ||||
|             dialog::scaleLog(); | ||||
|             }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur O'Dwyer
					Arthur O'Dwyer