mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-22 12:00:03 +00:00
Implement basic race handling
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "Database.hpp"
|
||||
#include "BuddyManager.hpp"
|
||||
#include "MobManager.hpp"
|
||||
#include "RacingManager.hpp"
|
||||
|
||||
#include "settings.hpp"
|
||||
|
||||
@@ -71,6 +72,9 @@ void PlayerManager::removePlayer(CNSocket* key) {
|
||||
// remove player's bullets
|
||||
MobManager::Bullets.erase(plr->iID);
|
||||
|
||||
// remove player's ongoing race, if it exists
|
||||
RacingManager::EPRaces.erase(key);
|
||||
|
||||
// save player to DB
|
||||
Database::updatePlayer(plr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user