hudecho can be disabled

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6397 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-04-30 00:34:08 +00:00
parent 51806b5c54
commit e09157c29b
+5 -1
View File
@@ -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);