refactor(Core): fix some warnings from VS (#4049)
This commit is contained in:
@@ -139,7 +139,7 @@ class Channel
|
|||||||
{
|
{
|
||||||
uint64 player;
|
uint64 player;
|
||||||
uint8 flags;
|
uint8 flags;
|
||||||
uint32 lastSpeakTime; // pussywizard
|
uint64 lastSpeakTime; // pussywizard
|
||||||
Player* plrPtr; // pussywizard
|
Player* plrPtr; // pussywizard
|
||||||
|
|
||||||
bool HasFlag(uint8 flag) const { return flags & flag; }
|
bool HasFlag(uint8 flag) const { return flags & flag; }
|
||||||
@@ -164,9 +164,9 @@ class Channel
|
|||||||
if (state) flags |= MEMBER_FLAG_MUTED;
|
if (state) flags |= MEMBER_FLAG_MUTED;
|
||||||
else 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();
|
lastSpeakTime = sWorld->GetGameTime();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ private:
|
|||||||
std::string m_newCharString;
|
std::string m_newCharString;
|
||||||
|
|
||||||
float rate_values[MAX_RATES];
|
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];
|
bool m_bool_configs[BOOL_CONFIG_VALUE_COUNT];
|
||||||
float m_float_configs[FLOAT_CONFIG_VALUE_COUNT];
|
float m_float_configs[FLOAT_CONFIG_VALUE_COUNT];
|
||||||
typedef std::map<uint32, uint64> WorldStatesMap;
|
typedef std::map<uint32, uint64> WorldStatesMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user