diff options
author | Chaz Brown <iamparadox@netscape.net> | 2009-08-19 15:20:10 -0400 |
---|---|---|
committer | Chaz Brown <iamparadox@netscape.net> | 2009-08-19 15:20:10 -0400 |
commit | 4ac7a2d0720d0e7597724f2cafefbe224b5cbab7 (patch) | |
tree | 0b59d21c8f3786563ab7b2ddadd8d2157b1429f9 /src/game/Mail.cpp | |
parent | 69c3abfc0ba59d6f46050577d83481ea84e5055f (diff) |
AHBuyer now buys when it's supposed to.
Fixed some mails using hardcoded HOUR instead of MailTimeDelay from config.
AHBuyer once again sends out pending sale mails, and they use the correct time. (Thanks for helping, Aokromes)
Still needs some work to make the time update every second, instead of every minute.
Also, thesale pending mail doesn't get deleted when the timer runs out, but, on the next
mail cleanup.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Mail.cpp')
-rw-r--r-- | src/game/Mail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp index f0af479374c..39ed3d4f9f0 100644 --- a/src/game/Mail.cpp +++ b/src/game/Mail.cpp @@ -857,7 +857,7 @@ void WorldSession::SendMailTo(Player* receiver, uint8 messageType, uint8 station //expire time if COD 3 days, if no COD 30 days, if auction sale pending 1 hour uint32 expire_delay; if(messageType == MAIL_AUCTION && !mi && !money) // auction mail without any items and money - expire_delay = HOUR; + expire_delay = sWorld.getConfig(CONFIG_MAIL_DELIVERY_DELAY); else expire_delay = (COD > 0) ? 3*DAY : 30*DAY; |