mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-31 15:20:07 +00:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user