Browse Source

Resolved the rental timer display (fixes #1745)
* Follow up to 45d9674.
* Fixes the timer message displaying too often.
Thanks to @whupdo!

aleos89 8 years ago
parent
commit
82675d86d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -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++;
 		}
 	}