summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-08 14:26:19 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-08 14:26:19 +0000
commit69a474cabda1523f7f388e6012d0123b3ed98030 (patch)
tree2d15f9ba7d97382163c11dddd7f4f6e4e56a508a /crawl-ref/source/describe.cc
parent25c3f067307476e39140d8477ce7024ff6f44d1d (diff)
downloadcrawl-ref-69a474cabda1523f7f388e6012d0123b3ed98030.tar.gz
crawl-ref-69a474cabda1523f7f388e6012d0123b3ed98030.zip
Better output in '^' screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8330 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc4
1 files changed, 2 insertions, 2 deletions
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());