Minor optimizations to MSG_QUERY_NEXT_MAIL_TIME handler.
commit9f433f3789248afc154c506f8dc63b064427bf7c
authorhunuza <hunuza@gmail.com>
Mon, 6 Jul 2009 14:31:58 +0000 (6 16:31 +0200)
committerhunuza <hunuza@gmail.com>
Mon, 6 Jul 2009 14:57:18 +0000 (6 16:57 +0200)
treee6f145736c35094c18029d4d41b78769797e88fb
parentb3abb80590a3c34542af61e4d2e01a6ef2c05fb9
Minor optimizations to MSG_QUERY_NEXT_MAIL_TIME handler.

* Do not search for more unread mails when already found 2.
* Do not call time(NULL) every iteration.

Signed-off-by: hunuza <hunuza@gmail.com>
src/game/Mail.cpp