Fix newlines for G_PrintToAllClients

This commit is contained in:
smallmodel 2024-12-09 21:42:45 +01:00
parent d26718a711
commit 3cc417151d
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
3 changed files with 5 additions and 5 deletions

View file

@ -1254,7 +1254,7 @@ bool DM_Manager::CheckEndMatch()
m_bIgnoringClockForBomb = false;
} 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;
return false;
}
@ -1328,7 +1328,7 @@ bool DM_Manager::CheckEndMatch()
return true;
} else if (m_iNumBombsPlanted >= m_iNumTargetsToDestroy - m_iNumTargetsDestroyed) {
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;
}
} else {

View file

@ -2171,9 +2171,9 @@ void G_PrintToAllClients(const char *pszString, int iType)
}
} else {
if (iType == 0) {
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\n\"", pszString);
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_YELLOW "%s\"", pszString);
} else {
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\n\"", pszString);
gi.SendServerCommand(-1, "print \"" HUD_MESSAGE_WHITE "%s\"", pszString);
}
}
}

View file

@ -4256,7 +4256,7 @@ void Player::ClientInactivityTimer(void)
//
// 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")) {
//