mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
refactor(Core): fix some warnings from VS (#4049)
This commit is contained in:
@@ -139,7 +139,7 @@ class Channel
|
||||
{
|
||||
uint64 player;
|
||||
uint8 flags;
|
||||
uint32 lastSpeakTime; // pussywizard
|
||||
uint64 lastSpeakTime; // pussywizard
|
||||
Player* plrPtr; // pussywizard
|
||||
|
||||
bool HasFlag(uint8 flag) const { return flags & flag; }
|
||||
@@ -164,9 +164,9 @@ class Channel
|
||||
if (state) flags |= MEMBER_FLAG_MUTED;
|
||||
else flags &= ~MEMBER_FLAG_MUTED;
|
||||
}
|
||||
bool IsAllowedToSpeak(uint32 speakDelay) // pussywizard
|
||||
bool IsAllowedToSpeak(uint64 speakDelay) // pussywizard
|
||||
{
|
||||
if (lastSpeakTime + speakDelay <= sWorld->GetGameTime())
|
||||
if (lastSpeakTime + speakDelay <= static_cast<uint64>(sWorld->GetGameTime()))
|
||||
{
|
||||
lastSpeakTime = sWorld->GetGameTime();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user