From 2aa69c8f83e2afd25a355bc1c70acb646f425b9f Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 27 May 2008 01:48:13 +0000 Subject: Added "error" channel for runtime errors, and changed error messages that used the "danger" or "warning" channels to use that. Sending an error message to the error channel has the side effect of interrupting all activity. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5276 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 40f43c7358..ab419caef4 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -445,7 +445,7 @@ void unlink_item( int dest ) #if DEBUG // Okay, the sane ways are gone... let's warn the player: - mprf( MSGCH_DANGER, "BUG WARNING: Problems unlinking item '%s', (%d, %d)!!!", + mprf(MSGCH_ERROR, "BUG WARNING: Problems unlinking item '%s', (%d, %d)!!!", mitm[dest].name(DESC_PLAIN).c_str(), mitm[dest].x, mitm[dest].y ); // Okay, first we scan all items to see if we have something @@ -498,7 +498,8 @@ void unlink_item( int dest ) // Okay, finally warn player if we didn't do anything. if (!linked) - mpr("BUG WARNING: Item didn't seem to be linked at all.", MSGCH_DANGER); + mpr("BUG WARNING: Item didn't seem to be linked at all.", + MSGCH_ERROR); #endif } // end unlink_item() -- cgit v1.2.3-54-g00ecf