mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-11-30 04:20:06 +00:00
changed vehicle iTimeLimit to be stored in seconds instead of miliseconds
This commit is contained in:
@@ -611,7 +611,7 @@ void Database::getInventory(Player* player) {
|
||||
}
|
||||
|
||||
void Database::removeExpiredVehicles(Player* player) {
|
||||
uint64_t currentTime = getTimestamp();
|
||||
int32_t currentTime = getTimestamp()/1000;
|
||||
//remove from bank immediately
|
||||
for (int i = 0; i < ABANK_COUNT; i++) {
|
||||
if (player->Bank[i].iType == 10 && player->Bank[i].iTimeLimit < currentTime)
|
||||
|
||||
Reference in New Issue
Block a user