Permalink
Browse files

mod: display team change for spectators in console, refs #994

  • Loading branch information...
1 parent 59162fd commit 0edfca497981b9164bb43b72431d61037faf2a82 @rmarquis rmarquis committed Feb 15, 2017
Showing with 2 additions and 14 deletions.
  1. +1 −1 src/cgame/cg_popupmessages.c
  2. +1 −13 src/game/g_client.c
@@ -404,7 +404,7 @@ void CG_AddPMItem(popupMessageType_t type, const char *message, const char *mess
}
// do not write obituary popups into console - we'll get double kill-messages otherwise
- if (type != PM_DEATH && type != PM_TEAM)
+ if (type != PM_DEATH)
{
trap_Print(va("%s\n", listItem->message)); // FIXME: translate this (does it makes sense?)
}
View
@@ -2875,19 +2875,7 @@ void ClientBegin(int clientNum)
if (client->sess.sessionTeam != TEAM_SPECTATOR)
{
- switch (client->sess.sessionTeam)
- {
- case TEAM_AXIS:
- trap_SendServerCommand(-1, va("print \"[lof]" S_COLOR_WHITE "%s" S_COLOR_WHITE " [lon]joined the Axis team\n\"", client->pers.netname));
- break;
- case TEAM_ALLIES:
- trap_SendServerCommand(-1, va("print \"[lof]" S_COLOR_WHITE "%s" S_COLOR_WHITE " [lon]joined the Allies team\n\"", client->pers.netname));
- break;
- default:
- // Just in case
- trap_SendServerCommand(-1, va("print \"[lof]" S_COLOR_WHITE "%s" S_COLOR_WHITE " [lon]entered the game\n\"", client->pers.netname));
- break;
- }
+ trap_SendServerCommand(-1, va("print \"[lof]" S_COLOR_WHITE "%s" S_COLOR_WHITE " [lon]entered the game\n\"", client->pers.netname));
}
G_LogPrintf("ClientBegin: %i\n", clientNum);

0 comments on commit 0edfca4

Please sign in to comment.