summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-clone.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-09-05 08:40:26 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-09-05 12:56:08 +0200
commita49e4492fc269271c7809d2caeb1e4d80bb0b7bf (patch)
tree66876acf63363e5f2bc3cddb3493d5ae01a34c1d /crawl-ref/source/mon-clone.cc
parent0dddc8ccfbd7d015092f761c69285a0fc17f4de5 (diff)
downloadcrawl-ref-a49e4492fc269271c7809d2caeb1e4d80bb0b7bf.tar.gz
crawl-ref-a49e4492fc269271c7809d2caeb1e4d80bb0b7bf.zip
Rename variables named "monster" to "mons" or similar.
Diffstat (limited to 'crawl-ref/source/mon-clone.cc')
-rw-r--r--crawl-ref/source/mon-clone.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-clone.cc b/crawl-ref/source/mon-clone.cc
index 7dafc889ee..05602d1739 100644
--- a/crawl-ref/source/mon-clone.cc
+++ b/crawl-ref/source/mon-clone.cc
@@ -192,7 +192,7 @@ static void _mons_load_player_enchantments(monsters *creator, monsters *target)
}
}
-void mons_summon_illusion_from(monsters *monster, actor *foe,
+void mons_summon_illusion_from(monsters* mons, actor *foe,
spell_type spell_cast)
{
if (foe->atype() == ACT_PLAYER)
@@ -200,8 +200,8 @@ void mons_summon_illusion_from(monsters *monster, actor *foe,
ASSERT(foe == &you);
const int midx =
create_monster(
- mgen_data(MONS_PLAYER_ILLUSION, SAME_ATTITUDE(monster), monster,
- 6, spell_cast, monster->pos(), monster->foe, 0));
+ mgen_data(MONS_PLAYER_ILLUSION, SAME_ATTITUDE(mons), mons,
+ 6, spell_cast, mons->pos(), mons->foe, 0));
if (midx != -1)
{
mpr("There is a horrible, sudden wrenching feeling in your soul!",
@@ -212,13 +212,13 @@ void mons_summon_illusion_from(monsters *monster, actor *foe,
clone->type = MONS_PLAYER_ILLUSION;
_init_player_illusion_properties(
get_monster_data(MONS_PLAYER_ILLUSION));
- _mons_load_player_enchantments(monster, clone);
+ _mons_load_player_enchantments(mons, clone);
}
}
else
{
monsters *mfoe = foe->as_monster();
- _mons_summon_monster_illusion(monster, mfoe);
+ _mons_summon_monster_illusion(mons, mfoe);
}
}