summaryrefslogtreecommitdiff
path: root/src/qcommon/q_shared.h
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-22 20:55:11 +0000
committerTim Angus <tim@ngus.net>2007-09-22 20:55:11 +0000
commit6eb2ff79c06c6d5acab3070937a680ff3494ba50 (patch)
tree4d14fb84712d4c7a1c2ed19b2056b0e40b445d4b /src/qcommon/q_shared.h
parent0edfa2794ebbcc7019093e5d88b7ca7269704902 (diff)
* Merge of ioq3-r1186
Diffstat (limited to 'src/qcommon/q_shared.h')
-rw-r--r--src/qcommon/q_shared.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h
index 74957af4..8c61aa7d 100644
--- a/src/qcommon/q_shared.h
+++ b/src/qcommon/q_shared.h
@@ -90,11 +90,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**********************************************************************/
-#ifdef Q3_VM
-
#include "../game/bg_lib.h"
-#else
+#ifndef Q3_VM
#include <assert.h>
#include <math.h>
@@ -337,7 +335,7 @@ extern vec4_t colorMdGrey;
extern vec4_t colorDkGrey;
#define Q_COLOR_ESCAPE '^'
-#define Q_IsColorString(p) ( p && *(p) == Q_COLOR_ESCAPE && *((p)+1) && *((p)+1) != Q_COLOR_ESCAPE )
+#define Q_IsColorString(p) ( p && *(p) == Q_COLOR_ESCAPE && *((p)+1) && isalnum(*((p)+1)) ) // ^[0-9a-zA-Z]
#define COLOR_BLACK '0'
#define COLOR_RED '1'