mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10687] UInt32 timer class copies instead using time_t timers for mstime cases.
Also cleanup weather update code and some random code cleanups.
This commit is contained in:
parent
478bf3b367
commit
464908f453
15 changed files with 87 additions and 67 deletions
|
|
@ -8717,11 +8717,11 @@ DiminishingLevels Unit::GetDiminishing(DiminishingGroup group)
|
|||
if(!i->hitCount)
|
||||
return DIMINISHING_LEVEL_1;
|
||||
|
||||
if(!i->hitTime)
|
||||
if (!i->hitTime)
|
||||
return DIMINISHING_LEVEL_1;
|
||||
|
||||
// If last spell was casted more than 15 seconds ago - reset the count.
|
||||
if(i->stack==0 && getMSTimeDiff(i->hitTime,getMSTime()) > 15000)
|
||||
if (i->stack==0 && getMSTimeDiff(i->hitTime,getMSTime()) > 15*IN_MILLISECONDS)
|
||||
{
|
||||
i->hitCount = DIMINISHING_LEVEL_1;
|
||||
return DIMINISHING_LEVEL_1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue