コード例 #1
0
void MapVoteMenu (edict_t * ent, pmenu_t * p)
{
	char buf[1024], sbuf[512];

	PMenu_Close (ent);
	if (_MostVotesStr (sbuf));
		sprintf (buf, "most: %s", sbuf);
	if (xMenu_New (ent, MAPMENUTITLE, buf, AddMapToMenu) == false)
		gi.cprintf (ent, PRINT_MEDIUM, "No map to vote for.\n");
}
コード例 #2
0
void _MapWithMostVotes (void)
{
	char buf[1024], sbuf[512];

	if (_MostVotesStr (sbuf))
	{
		sprintf (buf, "Most wanted map: %s\n", sbuf);
		gi.bprintf (PRINT_HIGH, strtostr2 (buf));
	}
}
コード例 #3
0
ファイル: a_vote.c プロジェクト: Raptor007/aq2-tng
void _MapWithMostVotes (void)
{
	char buf[1024], sbuf[512];

	if (_MostVotesStr(sbuf))
	{
		Com_sprintf(buf, sizeof(buf), "Most wanted map: %s", sbuf);
		G_HighlightStr(buf, buf, sizeof(buf));
		gi.bprintf(PRINT_HIGH, "%s\n", buf);
	}
}