|
From: <gi...@cr...> - 2025-12-01 06:25:09
|
via d5195eb00b332f4372e20a063bcf7d3456dcae56 (commit)
from 77ab2cbb74c2be06d7dc6da9c29ecaba86cbde51 (commit)
-----------------------------------------------------------------------
commit d5195eb00b332f4372e20a063bcf7d3456dcae56
Author: hellmonk <nld...@gm...>
Date: Mon Dec 1 00:21:19 2025 -0600
fix a spell menu description
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/spl-cast.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index c5139500b4..aaa77d2a81 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -292,7 +292,7 @@ int list_spells(bool toggle_with_I, bool transient, bool viewing,
string more_str = make_stringf("<lightgrey>Select a spell to %s</lightgrey>",
real_action.c_str());
- more_str = pad_more_with_esc(more_str + " [<w>?</w>] help");
+ string help_desc = make_stringf(" [<w>?</w>] help ");
string toggle_desc = menu_keyhelp_cmd(CMD_MENU_CYCLE_MODE);
if (toggle_with_I)
{
@@ -301,7 +301,7 @@ int list_spells(bool toggle_with_I, bool transient, bool viewing,
toggle_desc += "/[<w>I</w>]";
}
toggle_desc += " toggle spell headers";
- more_str = pad_more_with(more_str, toggle_desc);
+ more_str = pad_more_with_esc(more_str + help_desc + toggle_desc);
spell_menu.set_more(formatted_string::parse_string(more_str));
// TODO: should allow toggling between execute and examine
spell_menu.menu_action = viewing ? Menu::ACT_EXAMINE : Menu::ACT_EXECUTE;
--
Dungeon Crawl Stone Soup
|