From 1fdd4abbce290f4d656bf29ce65d70ab5025871d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 22 Oct 2009 19:13:56 +0200 Subject: Get rid of player_monster_visible. The special casing for drowning monsters appears to have been obsoloted by checking ENCH_SUBMERGED instead of calling mons_is_submerged. --- crawl-ref/source/ouch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/ouch.cc') diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index cfcc31cd54..d18060aa54 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -784,7 +784,7 @@ static void _xom_checks_damage(kill_method_type death_type, // creature of lower level than yourself. amusementvalue += leveldif * leveldif * dam; - if (!player_monster_visible(monster)) + if (!monster->visible_to(&you)) amusementvalue += 10; if (monster->speed < 100/player_movement_speed()) -- cgit v1.2.3-54-g00ecf