From 69a474cabda1523f7f388e6012d0123b3ed98030 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 8 Jan 2009 14:26:19 +0000 Subject: Better output in '^' screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8330 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index c41c3826c9..fbb6e7c39f 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2883,10 +2883,10 @@ static bool _print_final_god_abil_desc(int god, const std::string &final_msg, std::ostringstream buf; buf << final_msg; - if (abil != ABIL_NON_ABILITY) + const std::string cost = "(" + make_cost_description(abil) + ")"; + if (cost != "(None)") { const int spacesleft = 79 - buf.str().length(); - const std::string cost = "(" + make_cost_description(abil) + ")"; buf << std::setw(spacesleft) << cost; } cprintf("%s\n", buf.str().c_str()); -- cgit v1.2.3-54-g00ecf