adjusted timestamp function to always return value in seconds

This commit is contained in:
kamilprzyb
2020-09-23 11:05:18 +02:00
parent 09f1f67778
commit 016c48645e
4 changed files with 6 additions and 5 deletions

View File

@@ -611,7 +611,7 @@ void Database::getInventory(Player* player) {
}
void Database::removeExpiredVehicles(Player* player) {
int32_t currentTime = getTimestamp()/1000;
int32_t currentTime = getTimestamp();
//remove from bank immediately
for (int i = 0; i < ABANK_COUNT; i++) {
if (player->Bank[i].iType == 10 && player->Bank[i].iTimeLimit < currentTime)