X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fplayerstats.qc;h=3b8c97c4b81626f6d292155e1831269540559b36;hp=cf272e5635a1eb66e72ec90810b864b10eff9f27;hb=c05104bde1e758c4022f9755f02f177aa0476134;hpb=4b615d6ea3ee6794ea9368c782393c66ef55c170 diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index cf272e563..3b8c97c4b 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -5,9 +5,11 @@ #include "constants.qh" #include "util.qh" #include + #include #include "../server/anticheat.qh" - #include "../server/defs.qh" + #include #include "../server/scores.qh" + #include #include "../server/weapons/accuracy.qh" #endif @@ -294,7 +296,7 @@ void PlayerStats_GameReport_Handler(entity fh, entity pass, float status) * G: game type * O: mod name (icon request) as in server browser * M: map name - * I: match ID (see "matchid" in g_world.qc) + * I: match ID (see "matchid" in world.qc) * S: "hostname" of the server * C: number of "unpure" cvar changes * U: UDP port number of the server @@ -490,6 +492,21 @@ void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest) } } +SHUTDOWN(PlayerStats_PlayerBasic_Shutdown) +{ + if(PS_B_IN_DB >= 0) + { + db_close(PS_B_IN_DB); + PS_B_IN_DB = -1; + } + + if(PS_GR_OUT_DB >= 0) + { + db_close(PS_GR_OUT_DB); + PS_GR_OUT_DB = -1; + } +} + void PlayerStats_PlayerBasic_CheckUpdate(entity joiningplayer) { // determine whether we should retrieve playerbasic information again