From 17253d2c9011d413fb06e42735b45dc3f82140d0 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 26 Aug 2012 20:50:12 +0000 Subject: Turned a common assert into a warning log git-svn-id: http://mc-server.googlecode.com/svn/trunk@794 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Defines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Defines.h b/source/Defines.h index 15c94c081..a5b70a1a5 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -130,7 +130,7 @@ inline void AddDirection( int & a_X, int & a_Y, int & a_Z, char a_Direction, boo case BLOCK_FACE_SOUTH: a_Z++; break; default: { - ASSERT(!"Unknown direction"); + LOGWARNING("AddDirection(): Unknown direction: %d", a_Direction); break; } } @@ -147,7 +147,7 @@ inline void AddDirection( int & a_X, int & a_Y, int & a_Z, char a_Direction, boo case BLOCK_FACE_SOUTH: a_Z--; break; default: { - ASSERT(!"Unknown direction"); + LOGWARNING("AddDirection(): Unknown inv direction: %d", a_Direction); break; } } -- cgit v1.2.3