From f67c60e2b072489550c5d38c3d905412ad676b4e Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 23 Apr 2007 10:31:09 +0000 Subject: Proper colouring of random_teleport in status screen (David). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1348 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index cccf6e9469..3430247de6 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -961,7 +961,7 @@ std::vector get_full_detail(bool calc_unid) determine_color_string(-1), itosym1(1)); else { - const int rrtel = player_teleport(calc_unid); + const int rrtel = !!player_teleport(calc_unid); snprintf(buf, sizeof buf, "%sRnd.Telep. : %s", determine_color_string(rrtel), itosym1(rrtel)); } @@ -1237,7 +1237,7 @@ void print_overview_screen() determine_color_string(-1), itosym1(1)); else { - const int rrtel = player_teleport(calc_unid); + const int rrtel = !!player_teleport(calc_unid); snprintf(buf, sizeof buf, "\n%sRnd.Telep. : %s", determine_color_string(rrtel), itosym1(rrtel)); } -- cgit v1.2.3-54-g00ecf