From 412bcd6e779cd3883bc5c6ce29a8e79ad32c63f4 Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 13 Feb 2009 00:47:33 +0000 Subject: Remove a great many cases where mgrd is accessed directly in favour of monster_at(). The hope is to eventually remove mgrd completely (in favour of scanning through the monster list, or a different datastructure which gets updated automatically when monsters move), and thus fix all the mgrd-out-of-sync bugs in one fell swoop. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9056 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 374348e8cb..39987ff426 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2159,10 +2159,8 @@ void get_feature_desc(const coord_def &pos, describe_info &inf) inf.quote = getQuoteString(db_name); } -void describe_feature_wide(int x, int y) +void describe_feature_wide(const coord_def& pos) { - const coord_def pos(x, y); - describe_info inf; get_feature_desc(pos, inf); print_description(inf); @@ -2170,7 +2168,7 @@ void describe_feature_wide(int x, int y) mouse_control mc(MOUSE_MODE_MORE); if (Options.tutorial_left) - tutorial_describe_pos(x, y); + tutorial_describe_pos(pos.x, pos.y); if (getch() == 0) getch(); -- cgit v1.2.3-54-g00ecf