From d5950593f2e966032a81d4f150b24834c18a521b Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 9 Jun 2008 00:28:37 +0000 Subject: Clean up the routines to animate the dead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5621 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/abl-show.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/abl-show.cc') diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 0591520d59..299c4e7698 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1463,10 +1463,8 @@ static bool _do_ability(const ability_def& abil) case ABIL_YRED_ANIMATE_CORPSE: mpr("You call on the dead to walk for you..."); - - animate_a_corpse( you.x_pos, you.y_pos, BEH_FRIENDLY, - you.pet_target, CORPSE_BODY ); - + animate_a_corpse(you.x_pos, you.y_pos, CORPSE_BODY, BEH_FRIENDLY, + you.pet_target, true); exercise(SK_INVOCATIONS, 2 + random2(4)); break; @@ -1477,10 +1475,8 @@ static bool _do_ability(const ability_def& abil) case ABIL_YRED_ANIMATE_DEAD: mpr("You call on the dead to walk for you..."); - - animate_dead( &you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY, - you.pet_target, 1 ); - + animate_dead(&you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY, + you.pet_target, true); exercise(SK_INVOCATIONS, 2 + random2(4)); break; -- cgit v1.2.3-54-g00ecf