vehicle has a proper expiration day when bought, implemented checking expired vehicles while login

This commit is contained in:
kamilprzyb
2020-09-22 13:16:09 +02:00
parent 00f64ce992
commit 5a58908462
7 changed files with 79 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
#include "CNShardServer.hpp"
#include "CNShared.hpp"
#include "MissionManager.hpp"
#include "ItemManager.hpp"
#include "settings.hpp"
@@ -283,6 +284,8 @@ void PlayerManager::enterPlayer(CNSocket* sock, CNPacketData* data) {
sock->sendPacket((void*)&motd, P_FE2CL_PC_MOTD_LOGIN, sizeof(sP_FE2CL_PC_MOTD_LOGIN));
addPlayer(sock, plr);
//check if there is an expiring vehicle
ItemManager::checkItemExpire(sock, getPlayer(sock));
}
void PlayerManager::sendToViewable(CNSocket* sock, void* buf, uint32_t type, size_t size) {