Skip to content

Commit f757883

Browse files
committed
fix vgs console printing twice & w/ blank line
1 parent 9d848a0 commit f757883

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

codemp/cgame/cg_event.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,14 +3617,7 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
36173617
}
36183618
if (ci->team == ourTeam || isGlobalVGS(s)) //put it to console or.. just not at all?
36193619
{ //add to the chat box
3620-
//hear it in the world spot.
3621-
char vchatstr[1024] = {0};
3622-
Q_strncpyz(vchatstr, va("<%s^7: %s>\n", ci->name, descr), sizeof( vchatstr ) );
3623-
CG_ChatBox_AddString(vchatstr);
3624-
if (cg_chatBox.integer)
3625-
trap->Print("*%s", vchatstr); //supress in top left w/ the chatbox enabled
3626-
else
3627-
trap->Print(vchatstr);
3620+
CG_ChatBox_AddString(va("<%s^7: %s>", ci->name, descr));
36283621
}
36293622

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

0 commit comments

Comments
 (0)