From e09157c29b4a8d0b4248a4bc1ee74bc9708aead4 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sat, 30 Apr 2011 00:34:08 +0000 Subject: [PATCH] hudecho can be disabled git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6397 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index 11611ed1..5ed546f6 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -270,12 +270,16 @@ void echo(char *text) while(s); } +VARP(allowhudechos, 0, 1, 1); void hudecho(char *text) { const char *s = strtok(text, "\n"); do { - hudoutf("%s", s ? s : ""); + if(allowhudechos) + hudoutf("%s", s ? s : ""); + else + conoutf("%s", s ? s : ""); s = strtok(NULL, "\n"); } while(s);