Skip to content

Commit

Permalink
fix vgs console printing twice & w/ blank line
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucky21659 committed Jun 15, 2020
1 parent 9d848a0 commit f757883
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions codemp/cgame/cg_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -3617,14 +3617,7 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
}
if (ci->team == ourTeam || isGlobalVGS(s)) //put it to console or.. just not at all?
{ //add to the chat box
//hear it in the world spot.
char vchatstr[1024] = {0};
Q_strncpyz(vchatstr, va("<%s^7: %s>\n", ci->name, descr), sizeof( vchatstr ) );
CG_ChatBox_AddString(vchatstr);
if (cg_chatBox.integer)
trap->Print("*%s", vchatstr); //supress in top left w/ the chatbox enabled
else
trap->Print(vchatstr);
CG_ChatBox_AddString(va("<%s^7: %s>", ci->name, descr));
}

if (ci->team == ourTeam || isGlobalVGS(s))
Expand Down

0 comments on commit f757883

Please sign in to comment.