Fixed game.MessagePrint so it gives Message instead of quiet center print.

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
This commit is contained in:
Harry Young 2011-10-31 22:06:57 +01:00
parent 45005c64b9
commit ffd4e606e8

View file

@ -166,10 +166,10 @@ static int Game_MessagePrint(lua_State *L) {
}
if(clNum != -1 && clNum >= 0 && clNum < level.maxclients)
trap_SendServerCommand(clNum, va("cp \"" S_COLOR_WHITE "%s\n\"", buf));
trap_SendServerCommand(clNum, va("servermsg \"" S_COLOR_WHITE "%s\n\"", buf));
else {
for(i = 0; i < level.maxclients; i++)
trap_SendServerCommand(i, va("cp \"" S_COLOR_WHITE "%s\n\"", buf));
trap_SendServerCommand(i, va("servermsg \"" S_COLOR_WHITE "%s\n\"", buf));
}
LUA_DEBUG("Game_MessagePrint - return: printed string");