Deleting players on logout

This commit is contained in:
Kayne Ruse
2013-06-24 23:34:48 +10:00
parent 6d1ba24404
commit 50bef9736c
3 changed files with 44 additions and 5 deletions
+6
View File
@@ -27,8 +27,14 @@ public:
int SetClientIndex(int i) { return clientIndex = i; }
int GetClientIndex() { return clientIndex; }
void ResetClientIndex() { clientIndex = -1; }
//one player at a time
int SetPlayerIndex(int i) { return playerIndex = i; }
int GetPlayerIndex() { return playerIndex; }
void ResetPlayerIndex() { playerIndex = -1; }
private:
int clientIndex = -1;
int playerIndex = -1;
};
#endif