mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9799] Remove duplicate code causing next reset of daily/weekly quests to double up
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
471af8fb27
commit
8a212ac0df
2 changed files with 3 additions and 8 deletions
|
|
@ -1355,16 +1355,11 @@ void World::Update(uint32 diff)
|
||||||
|
|
||||||
/// Handle daily quests reset time
|
/// Handle daily quests reset time
|
||||||
if (m_gameTime > m_NextDailyQuestReset)
|
if (m_gameTime > m_NextDailyQuestReset)
|
||||||
{
|
|
||||||
ResetDailyQuests();
|
ResetDailyQuests();
|
||||||
m_NextDailyQuestReset += DAY;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(m_gameTime > m_NextWeeklyQuestReset)
|
/// Handle weekly quests reset time
|
||||||
{
|
if (m_gameTime > m_NextWeeklyQuestReset)
|
||||||
ResetWeeklyQuests();
|
ResetWeeklyQuests();
|
||||||
m_NextWeeklyQuestReset += WEEK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <ul><li> Handle auctions when the timer has passed
|
/// <ul><li> Handle auctions when the timer has passed
|
||||||
if (m_timers[WUPDATE_AUCTIONS].Passed())
|
if (m_timers[WUPDATE_AUCTIONS].Passed())
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9798"
|
#define REVISION_NR "9799"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue