Make dynamic IDs count down from max instead of up from 0

This commit is contained in:
gsemaj
2021-04-26 13:50:51 -04:00
committed by Gent Semaj
parent 91dd5d5280
commit dd3066849b
4 changed files with 23 additions and 23 deletions

View File

@@ -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);