From 61aa415257407644740dc5e91d30bd94cdbd5327 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 3 Dec 2006 22:30:53 +0000 Subject: Miscellaneous minor fixes and cleanups (such as using player_can_smell() more and mprf() rather than strcats.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@547 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index c52a0724a2..66685465a1 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -148,22 +148,6 @@ const struct coord_def Compass[8] = { 0, 1 }, { -1, 1 }, { -1, 0 }, { -1, -1 }, }; -/* - - Functions needed: - New: - int player_speed(player you); - hit_player(damage, flavour, then last two ouch values, env); - - - Old: - wield(player you); - show_map - noisy() - losight - -*/ - // Functions in main module static void close_door(int move_x, int move_y); static void do_berserk_no_combat_penalty(void); @@ -1329,10 +1313,9 @@ void process_command( command_type cmd ) { strncpy(name_your, you.your_name, kNameLen); name_your[kNameLen] = 0; if (dump_char( name_your, false )) - strcpy(info, "Char dumped successfully."); + mpr("Char dumped successfully."); else - strcat(info, "Char dump unsuccessful! Sorry about that."); - mpr(info); + mpr("Char dump unsuccessful! Sorry about that."); break; #ifdef USE_MACROS @@ -2056,7 +2039,8 @@ static void decrement_durations() at some point. */ -static void world_reacts() { +static void world_reacts() +{ bool its_quiet; //jmf: for silence messages -- cgit v1.2.3-54-g00ecf