summaryrefslogtreecommitdiff
path: root/source/q_shared.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-04-04 20:45:13 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-04-04 20:45:13 +0000
commit22fd6efeeb7ee918e0d1ffb75f6292077ce27816 (patch)
tree7b355fc4aa8a7c63aac93af54fb229f678ef552c /source/q_shared.c
parent7ec50f12252b4dfb97f3249ccf05a771b98785c1 (diff)
Added support for drawing colored text via `draw' client command.
Cvar_Get now resets user defined cvar values for read-only cvars. Sever and game DLL features are now advertised via cvars instead of exports.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r--source/q_shared.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/q_shared.c b/source/q_shared.c
index 5368564..4d830f7 100644
--- a/source/q_shared.c
+++ b/source/q_shared.c
@@ -21,11 +21,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "config.h"
#include "q_shared.h"
-static const char *const hexchars = "0123456789ABCDEF";
+static const char hexchars[] = "0123456789ABCDEF";
vec3_t vec3_origin = { 0, 0, 0 };
-
const color_t colorBlack = { 0, 0, 0, 255 };
const color_t colorRed = { 255, 0, 0, 255 };
const color_t colorGreen = { 0, 255, 0, 255 };
@@ -46,7 +45,13 @@ const color_t colorTable[8] = {
{ 255, 255, 255, 255 }
};
-vec3_t bytedirs[NUMVERTEXNORMALS] = {
+const char colorNames[10][8] = {
+ "black", "red", "green", "yellow",
+ "blue", "cyan", "magenta", "white",
+ "alt", "none"
+};
+
+const vec3_t bytedirs[NUMVERTEXNORMALS] = {
{-0.525731, 0.000000, 0.850651},
{-0.442863, 0.238856, 0.864188},
{-0.295242, 0.000000, 0.955423},