changed vehicle iTimeLimit to be stored in seconds instead of miliseconds

This commit is contained in:
kamilprzyb
2020-09-22 21:49:24 +02:00
parent 7ba9b9a54f
commit 076f89927d
2 changed files with 2 additions and 3 deletions

View File

@@ -118,8 +118,7 @@ void NPCManager::npcVendorBuy(CNSocket* sock, CNPacketData* data) {
// if vehicle
if (req->Item.iType == 10)
// set time limit: current time + 7days
req->Item.iTimeLimit = getTimestamp() + 604800;
req->Item.iTimeLimit = getTimestamp()/1000 + 604800;
if (slot != req->iInvenSlotNum) {
// possible item stacking?