diff --git src/xtra3.c src/xtra3.c index 63e385d..2515a1d 100644 --- src/xtra3.c +++ src/xtra3.c @@ -71,6 +71,7 @@ game_event_type statusline_events[] = */ void cnv_stat(int val, char *out_val, size_t out_len) { +#if 0 /* Above 18 */ if (val > 18) { @@ -89,6 +90,25 @@ void cnv_stat(int val, char *out_val, size_t out_len) { strnfmt(out_val, out_len, " %2d", val); } +#else + /* Above 18 */ + if (val > 18) + { + int bonus = (val - 18); + int linval = (val - bonus) * 10 + bonus; + + if (bonus >= 220) + strnfmt(out_val, out_len, " ****"); + else + strnfmt(out_val, out_len, " %2d.%1d", linval / 10, linval % 10); + } + + /* From 3 to 18 */ + else + { + strnfmt(out_val, out_len, " %2d.0", val); + } +#endif } /* ------------------------------------------------------------------------