summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 2c1eaad153..11e4cead85 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1775,28 +1775,28 @@ static int glamour_monsters(int x, int y, int pow, int garbage)
// why no, there's no message as to which effect happened >:^)
if (!one_chance_in(4))
{
- strcpy(info, ptr_monam( &(menv[mon]), DESC_CAP_THE));
+ std::string msg = ptr_monam( &(menv[mon]), DESC_CAP_THE);
switch (random2(4))
{
case 0:
- strcat(info, " looks dazed.");
+ msg += " looks dazed.";
break;
case 1:
- strcat(info, " blinks several times.");
+ msg += " blinks several times.";
break;
case 2:
- strcat(info, " rubs its eye");
+ msg += " rubs its eye";
if (menv[mon].type != MONS_CYCLOPS)
- strcat(info, "s");
- strcat(info, ".");
+ msg += "s";
+ msg += ".";
break;
case 4:
- strcat(info, " tilts its head.");
+ msg += " tilts its head.";
break;
}
- mpr(info);
+ mpr(msg.c_str());
}
return (1);