mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-03-21 12:40:02 +00:00
Make dynamic IDs count down from max instead of up from 0
This commit is contained in:
@@ -512,8 +512,8 @@ static void eggCommand(std::string full, std::vector<std::string>& args, CNSocke
|
||||
return;
|
||||
}
|
||||
|
||||
assert(NPCManager::nextId < INT32_MAX);
|
||||
int id = NPCManager::nextId++;
|
||||
//assert(NPCManager::nextId < INT32_MAX);
|
||||
int id = NPCManager::nextId--;
|
||||
|
||||
Player* plr = PlayerManager::getPlayer(sock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user