Resolved the rental timer display (fixes #1745)

* Follow up to 45d9674.
* Fixes the timer message displaying too often.
Thanks to @whupdo!
This commit is contained in:
aleos89 2016-11-26 14:09:44 -05:00
parent 9aaf18eb33
commit 82675d86d0

View File

@ -532,7 +532,7 @@ void pc_inventory_rentals(struct map_session_data *sd)
unsigned int expire_tick = (unsigned int)(sd->inventory.u.items_inventory[i].expire_time - time(NULL));
clif_rental_time(sd->fd, sd->inventory.u.items_inventory[i].nameid, (int)expire_tick);
next_tick = umin(expire_tick, next_tick);
next_tick = umin(expire_tick * 1000U, next_tick);
c++;
}
}