Permalink
Browse files

Core/World: Alter ShutdownMsg function to set proper countdown

  • Loading branch information...
1 parent 3359b41 commit 6509e805d33b4119b3ed56802029f04223f207d3 @Thema89 Thema89 committed May 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/server/game/World/World.cpp
@@ -2609,8 +2609,9 @@ void World::ShutdownMsg(bool show, Player* player)
///- Display a message every 12 hours, hours, 5 minutes, minute, 5 seconds and finally seconds
if (show ||
- (m_ShutdownTimer < 5* MINUTE && (m_ShutdownTimer % 15) == 0) || // < 5 min; every 15 sec
- (m_ShutdownTimer < 15 * MINUTE && (m_ShutdownTimer % MINUTE) == 0) || // < 15 min ; every 1 min
+ (m_ShutdownTimet < 10 && (m_ShutdownTimer % 1) == 0) || // < 10 sec; every second (countdown)
+ (m_ShutdownTimer < 1 * MINUTE && (m_ShutdownTimer % 15) == 0) || // < 1 min; every 15 sec
+ (m_ShutdownTimer < 10 * MINUTE && (m_ShutdownTimer % MINUTE) == 0) || // < 10 min ; every 1 min
(m_ShutdownTimer < 30 * MINUTE && (m_ShutdownTimer % (5 * MINUTE)) == 0) || // < 30 min ; every 5 min
(m_ShutdownTimer < 12 * HOUR && (m_ShutdownTimer % HOUR) == 0) || // < 12 h ; every 1 h
(m_ShutdownTimer > 12 * HOUR && (m_ShutdownTimer % (12 * HOUR)) == 0)) // > 12 h ; every 12 h

0 comments on commit 6509e80

Please sign in to comment.