diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:32:42 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:03 +0000 |
commit | b606a25e8c414983faf6ffc49c53822f3c07a960 (patch) | |
tree | c9c209d1beeefb2303dc6a1bd8c0eb98a7317041 /src/game/g_cmds.c | |
parent | 75aea75974336cc763d936aac735eb8c110e2cb7 (diff) |
* (bug 3476) Log callvote/callteamvote to games.log and print votedisplaystring in client console message
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 250ee9e4..a71501b6 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1256,9 +1256,11 @@ void Cmd_CallVote_f( gentity_t *ent ) } trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE - " called a vote\n\"", ent->client->pers.netname ) ); - G_Printf( "'%s' called a vote for '%s'\n", ent->client->pers.netname, - level.voteString ) ; + " called a vote: %s^7\n\"", ent->client->pers.netname, + level.voteDisplayString ) ); + + G_LogPrintf("Vote: %s^7 called a vote: %s^7\n", + ent->client->pers.netname, level.voteDisplayString ); ent->client->pers.voteCount++; @@ -1491,11 +1493,12 @@ void Cmd_CallTeamVote_f( gentity_t *ent ) } ent->client->pers.voteCount++; - G_TeamCommand( team, va( "print \"%s " S_COLOR_WHITE "called a team vote\n\"", - ent->client->pers.netname ) ); + G_TeamCommand( team, va( "print \"%s " S_COLOR_WHITE "called a team vote: %s\n\"", + ent->client->pers.netname, level.teamVoteDisplayString[ cs_offset ] ) ); - G_Printf( "'%s' called a teamvote for '%s'\n", ent->client->pers.netname, - level.teamVoteString[ cs_offset ] ) ; + G_LogPrintf( "Teamvote: %s^7 called a teamvote (%s): %s\n", + ent->client->pers.netname, BG_TeamName(team), + level.teamVoteDisplayString[ cs_offset ] ); // start the voting, the caller autoamtically votes yes level.teamVoteTime[ cs_offset ] = level.time; |