Prevent players from collecting the same pod twice in races

Instead of ringCount, there is now a set of all ring IDs collected during the race.

Note: further validation measures are still required to ensure legitimate times/scores
This commit is contained in:
CakeLancelot
2021-04-13 21:17:21 -05:00
parent 9b84d9dc4d
commit fde4a5ff34
2 changed files with 14 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <set>
#include "servers/CNShardServer.hpp"
struct EPInfo {
@@ -7,7 +9,8 @@ struct EPInfo {
};
struct EPRace {
int ringCount, mode, ticketSlot;
std::set<int> collectedRings;
int mode, ticketSlot;
time_t startTime;
};