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

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

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

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