refactor(Core): fix some warnings from VS (#4049)
This commit is contained in:
parent
7ecb42c287
commit
39b7a74823
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ private:
|
|||
std::string m_newCharString;
|
||||
|
||||
float rate_values[MAX_RATES];
|
||||
uint32 m_int_configs[INT_CONFIG_VALUE_COUNT];
|
||||
uint64 m_int_configs[INT_CONFIG_VALUE_COUNT];
|
||||
bool m_bool_configs[BOOL_CONFIG_VALUE_COUNT];
|
||||
float m_float_configs[FLOAT_CONFIG_VALUE_COUNT];
|
||||
typedef std::map<uint32, uint64> WorldStatesMap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue