1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

display four digits after the decimal point in number dialogs if range is small

This commit is contained in:
Zeno Rogue 2017-12-18 23:40:24 +01:00
parent 386031ec13
commit c003dda811

View File

@ -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;