mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
display four digits after the decimal point in number dialogs if range is small
This commit is contained in:
parent
386031ec13
commit
c003dda811
@ -551,7 +551,7 @@ namespace dialog {
|
||||
else return int(x-.5);
|
||||
}
|
||||
|
||||
string disp(ld x) { if(ne.intval) return its(ldtoint(x)); else return fts(x); }
|
||||
string disp(ld x) { if(ne.intval) return its(ldtoint(x)); else if(ne.vmax-ne.vmin < 1) return fts4(x); else return fts(x); }
|
||||
|
||||
reaction_t reaction;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user