mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 14:17:57 +03:00
Fixed message printing on mohaas/mohaab
This commit is contained in:
parent
819f6bcf71
commit
7fb42cf655
4 changed files with 17 additions and 7 deletions
|
@ -1562,12 +1562,22 @@ void G_CenterPrintToAllClients(const char *pszString)
|
|||
}
|
||||
}
|
||||
|
||||
void G_PrintToAllClients(const char *pszString, qboolean bBold)
|
||||
void G_PrintToAllClients(const char *pszString, int iType)
|
||||
{
|
||||
if (bBold) {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\n\"", pszString);
|
||||
if (g_protocol >= protocol_e::PROTOCOL_MOHTA_MIN) {
|
||||
if (iType == 0) {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\"", pszString);
|
||||
} else if (iType == 1) {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\"", pszString);
|
||||
} else if (iType == 2) {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_CHAT_WHITE "%s\"", pszString);
|
||||
}
|
||||
} else {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\n\"", pszString);
|
||||
if (iType == 0) {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\n\"", pszString);
|
||||
} else {
|
||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\n\"", pszString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue