From 31d23a40fe1ac90e0e319ce9bab1fa3bb0a08bf3 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 23 Apr 2007 10:19:28 +0000 Subject: Cleaned up a lot of code which was using info[] to use mprf() directly instead. Fixed a bug with affix_weapon_enchantment messaging (mea culpa.) Fixed shatter() messages getting surpressed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1347 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/it_use2.cc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'crawl-ref/source/it_use2.cc') diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 969683e7c8..2c32f6f91b 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -124,10 +124,8 @@ bool potion_effect( char pot_eff, int pow ) break; case POT_LEVITATION: - strcpy(info, "You feel"); - strcat(info, (!player_is_levitating()) ? " very" : " more"); - strcat(info, " buoyant."); - mpr(info); + mprf("You feel %s buoyant.", + (!player_is_levitating()) ? " very" : " more"); if (!player_is_levitating()) mpr("You gently float upwards from the floor."); @@ -144,17 +142,13 @@ bool potion_effect( char pot_eff, int pow ) case POT_STRONG_POISON: if (player_res_poison()) { - snprintf( info, INFO_SIZE, "You feel %s nauseous.", - (pot_eff == POT_POISON) ? "slightly" : "quite" ); - - mpr(info); + mprf("You feel %s nauseous.", + (pot_eff == POT_POISON) ? "slightly" : "quite" ); } else { - snprintf( info, INFO_SIZE, "That liquid tasted %s nasty...", - (pot_eff == POT_POISON) ? "very" : "extremely" ); - - mpr(info); + mprf("That liquid tasted %s nasty...", + (pot_eff == POT_POISON) ? "very" : "extremely" ); poison_player( ((pot_eff == POT_POISON) ? 1 + random2avg(5, 2) : 3 + random2avg(13, 2)) ); -- cgit v1.2.3-54-g00ecf