{
string uri;
PS_GR_OUT_DB = -1;
- playerstats_waitforme = FALSE;
+ PlayerStats_GameReport_DelayMapVote = FALSE;
uri = autocvar_g_playerstats_uri;
if(uri == "")
return;
PS_GR_OUT_DB = db_create();
if(PS_GR_OUT_DB >= 0)
- playerstats_waitforme = TRUE; // must wait for it at match end
+ PlayerStats_GameReport_DelayMapVote = TRUE; // must wait for it at match end
serverflags |= SERVERFLAG_PLAYERSTATS;
uri = autocvar_g_playerstats_uri;
if(uri != "")
{
- playerstats_waitforme = TRUE;
+ PlayerStats_GameReport_DelayMapVote = TRUE;
url_multi_fopen(uri, FILE_APPEND, PlayerStats_GameReport_Handler, world);
}
else
{
- playerstats_waitforme = FALSE;
+ PlayerStats_GameReport_DelayMapVote = FALSE;
db_close(PS_GR_OUT_DB);
PS_GR_OUT_DB = -1;
}
{
// url_fclose has finished
print("Player stats written\n");
- playerstats_waitforme = FALSE;
+ PlayerStats_GameReport_DelayMapVote = FALSE;
db_close(PS_GR_OUT_DB);
PS_GR_OUT_DB = -1;
break;
default:
{
print("Player stats writing failed: ", ftos(status), "\n");
- playerstats_waitforme = FALSE;
+ PlayerStats_GameReport_DelayMapVote = FALSE;
if(PS_GR_OUT_DB >= 0)
{
db_close(PS_GR_OUT_DB);
const string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim";
// delay map switch until this is set
-float playerstats_waitforme;
+float PlayerStats_GameReport_DelayMapVote;
// call at initialization
void PlayerStats_GameReport_Init();
if(mapvote_run) { return; }
// don't start mapvote until after playerstats gamereport is sent
- if(playerstats_waitforme) { return; }
-
+ if(PlayerStats_GameReport_DelayMapVote) { return; }
// set up map information for mapvote
MapInfo_Enumerate();