mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 14:17:57 +03:00
Fix newlines for G_PrintToAllClients
This commit is contained in:
parent
d26718a711
commit
3cc417151d
3 changed files with 5 additions and 5 deletions
|
@ -1254,7 +1254,7 @@ bool DM_Manager::CheckEndMatch()
|
||||||
|
|
||||||
m_bIgnoringClockForBomb = false;
|
m_bIgnoringClockForBomb = false;
|
||||||
} else if (m_iNumBombsPlanted > 0) {
|
} else if (m_iNumBombsPlanted > 0) {
|
||||||
G_PrintToAllClients("A bomb is still set!");
|
G_PrintToAllClients(va("%s\n", gi.LV_ConvertString("A Bomb is Still Set!")));
|
||||||
m_bIgnoringClockForBomb = true;
|
m_bIgnoringClockForBomb = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1328,7 +1328,7 @@ bool DM_Manager::CheckEndMatch()
|
||||||
return true;
|
return true;
|
||||||
} else if (m_iNumBombsPlanted >= m_iNumTargetsToDestroy - m_iNumTargetsDestroyed) {
|
} else if (m_iNumBombsPlanted >= m_iNumTargetsToDestroy - m_iNumTargetsDestroyed) {
|
||||||
if (!m_bIgnoringClockForBomb) {
|
if (!m_bIgnoringClockForBomb) {
|
||||||
G_PrintToAllClients("A bomb is still set!");
|
G_PrintToAllClients(va("%s\n", gi.LV_ConvertString("A Bomb is Still Set!")));
|
||||||
m_bIgnoringClockForBomb = true;
|
m_bIgnoringClockForBomb = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2171,9 +2171,9 @@ void G_PrintToAllClients(const char *pszString, int iType)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (iType == 0) {
|
if (iType == 0) {
|
||||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\n\"", pszString);
|
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\"", pszString);
|
||||||
} else {
|
} else {
|
||||||
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\n\"", pszString);
|
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\"", pszString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4256,7 +4256,7 @@ void Player::ClientInactivityTimer(void)
|
||||||
//
|
//
|
||||||
// The player reached maximum team kills
|
// The player reached maximum team kills
|
||||||
//
|
//
|
||||||
G_PrintToAllClients(va("%s %s", client->pers.netname, message.c_str()), 2);
|
G_PrintToAllClients(va("%s %s\n", client->pers.netname, message.c_str()), 2);
|
||||||
|
|
||||||
if (Q_stricmp(Info_ValueForKey(client->pers.userinfo, "ip"), "localhost")) {
|
if (Q_stricmp(Info_ValueForKey(client->pers.userinfo, "ip"), "localhost")) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue