mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +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:
parent
ef562d0d43
commit
8d9a03699e
@ -1718,7 +1718,7 @@ void configure_edge_display() {
|
|||||||
dialog::add_action([t,s3] {
|
dialog::add_action([t,s3] {
|
||||||
static int i;
|
static int i;
|
||||||
i = 1 / t->visible_from;
|
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::reaction = [t] () { t->visible_from = i ? 1. / i : 5; };
|
||||||
dialog::scaleLog();
|
dialog::scaleLog();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user