summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/chardump.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r--crawl-ref/source/chardump.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc
index 579069cd04..20f0e392e3 100644
--- a/crawl-ref/source/chardump.cc
+++ b/crawl-ref/source/chardump.cc
@@ -1051,9 +1051,8 @@ static std::string _sdump_kills_place_info(PlaceInfo place_info,
f = TO_PERCENT(place_info.mon_kill_exp_avail,
you.global_info.mon_kill_exp_avail);
- g = (float) MAXIMUM(place_info.mon_kill_exp,
- place_info.mon_kill_exp_avail) /
- (float) place_info.levels_seen;
+ g = std::max<float>(place_info.mon_kill_exp, place_info.mon_kill_exp_avail)
+ / place_info.levels_seen;
out =
make_stringf("%14s | %5.1f | %5.1f | %5.1f | %5.1f | %5.1f |"