mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9381] Fixed some compile warnings.
This commit is contained in:
parent
2bdcb1161c
commit
ccfd42bf3e
55 changed files with 219 additions and 203 deletions
|
|
@ -50,7 +50,7 @@ uint32 GameEventMgr::NextCheck(uint16 entry) const
|
|||
|
||||
// never started event, we return delay before start
|
||||
if (mGameEvent[entry].start > currenttime)
|
||||
return (mGameEvent[entry].start - currenttime);
|
||||
return uint32(mGameEvent[entry].start - currenttime);
|
||||
|
||||
uint32 delay;
|
||||
// in event, we return the end of it
|
||||
|
|
@ -61,7 +61,7 @@ uint32 GameEventMgr::NextCheck(uint16 entry) const
|
|||
delay = (mGameEvent[entry].occurence * MINUTE) - ((currenttime - mGameEvent[entry].start) % (mGameEvent[entry].occurence * MINUTE));
|
||||
// In case the end is before next check
|
||||
if (mGameEvent[entry].end < time_t(currenttime + delay))
|
||||
return (mGameEvent[entry].end - currenttime);
|
||||
return uint32(mGameEvent[entry].end - currenttime);
|
||||
else
|
||||
return delay;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue