From 5199921c05dbb38acbc45a1195ce38efc722155f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 16 May 2026 16:51:30 +0300 Subject: [PATCH] Fix experience-level up/down hilighting The highlighting worked correctly for #levelchange in wizard mode, but not for gaining experience levels by killing monsters. --- doc/fixes5-0-1.txt | 1 + src/botl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes5-0-1.txt b/doc/fixes5-0-1.txt index fa287d1ee..9742f9b0f 100644 --- a/doc/fixes5-0-1.txt +++ b/doc/fixes5-0-1.txt @@ -25,6 +25,7 @@ fix statue and figurine genders in special levels in general fix buffer overflow in update_topl when handling multiple items in a container fix random attended shrines in irregular rooms +fix experience-level up/down hilighting Platform- and/or Interface-Specific Fixes diff --git a/src/botl.c b/src/botl.c index 22f447ea4..dea5c2e42 100644 --- a/src/botl.c +++ b/src/botl.c @@ -714,7 +714,7 @@ static struct istat_s initblstats[MAXBLSTATS] = { INIT_BLSTAT("gold", " %s", ANY_LONG, 40, BL_GOLD), INIT_BLSTATP("power", " Pw:%s", ANY_INT, 10, BL_ENEMAX, BL_ENE), INIT_BLSTAT("power-max", "(%s)", ANY_INT, 10, BL_ENEMAX), - INIT_BLSTATP("experience-level", " Xp:%s", ANY_INT, 10, BL_EXP, BL_XP), + INIT_BLSTATP("experience-level", " Xp:%s", ANY_INT, 10, BL_XP, BL_XP), INIT_BLSTAT("armor-class", " AC:%s", ANY_INT, 10, BL_AC), INIT_BLSTAT("HD", " HD:%s", ANY_INT, 10, BL_HD), INIT_BLSTAT("time", " T:%s", ANY_LONG, 30, BL_TIME),