mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
Apply style fix
This commit is contained in:
parent
5531a0087d
commit
35405dd549
155 changed files with 10968 additions and 3660 deletions
|
|
@ -128,7 +128,9 @@ class WorldUpdateCounter
|
|||
time_t timeElapsed()
|
||||
{
|
||||
if (!m_tmStart)
|
||||
{ m_tmStart = WorldTimer::tickPrevTime(); }
|
||||
{
|
||||
m_tmStart = WorldTimer::tickPrevTime();
|
||||
}
|
||||
|
||||
return WorldTimer::getMSTimeDiff(m_tmStart, WorldTimer::tickTime());
|
||||
}
|
||||
|
|
@ -148,7 +150,9 @@ class Object
|
|||
virtual void AddToWorld()
|
||||
{
|
||||
if (m_inWorld)
|
||||
{ return; }
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_inWorld = true;
|
||||
|
||||
|
|
@ -284,7 +288,9 @@ class Object
|
|||
void ToggleFlag(uint16 index, uint32 flag)
|
||||
{
|
||||
if (HasFlag(index, flag))
|
||||
{ RemoveFlag(index, flag); }
|
||||
{
|
||||
RemoveFlag(index, flag);
|
||||
}
|
||||
else
|
||||
{ SetFlag(index, flag); }
|
||||
}
|
||||
|
|
@ -306,7 +312,9 @@ class Object
|
|||
void ApplyModFlag(uint16 index, uint32 flag, bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{ SetFlag(index, flag); }
|
||||
{
|
||||
SetFlag(index, flag);
|
||||
}
|
||||
else
|
||||
{ RemoveFlag(index, flag); }
|
||||
}
|
||||
|
|
@ -317,7 +325,9 @@ class Object
|
|||
void ToggleByteFlag(uint16 index, uint8 offset, uint8 flag)
|
||||
{
|
||||
if (HasByteFlag(index, offset, flag))
|
||||
{ RemoveByteFlag(index, offset, flag); }
|
||||
{
|
||||
RemoveByteFlag(index, offset, flag);
|
||||
}
|
||||
else
|
||||
{ SetByteFlag(index, offset, flag); }
|
||||
}
|
||||
|
|
@ -332,7 +342,9 @@ class Object
|
|||
void ApplyModByteFlag(uint16 index, uint8 offset, uint32 flag, bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{ SetByteFlag(index, offset, flag); }
|
||||
{
|
||||
SetByteFlag(index, offset, flag);
|
||||
}
|
||||
else
|
||||
{ RemoveByteFlag(index, offset, flag); }
|
||||
}
|
||||
|
|
@ -343,7 +355,9 @@ class Object
|
|||
void ToggleShortFlag(uint16 index, bool highpart, uint8 flag)
|
||||
{
|
||||
if (HasShortFlag(index, highpart, flag))
|
||||
{ RemoveShortFlag(index, highpart, flag); }
|
||||
{
|
||||
RemoveShortFlag(index, highpart, flag);
|
||||
}
|
||||
else
|
||||
{ SetShortFlag(index, highpart, flag); }
|
||||
}
|
||||
|
|
@ -357,7 +371,9 @@ class Object
|
|||
void ApplyModShortFlag(uint16 index, bool highpart, uint32 flag, bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{ SetShortFlag(index, highpart, flag); }
|
||||
{
|
||||
SetShortFlag(index, highpart, flag);
|
||||
}
|
||||
else
|
||||
{ RemoveShortFlag(index, highpart, flag); }
|
||||
}
|
||||
|
|
@ -379,7 +395,9 @@ class Object
|
|||
void ToggleFlag64(uint16 index, uint64 flag)
|
||||
{
|
||||
if (HasFlag64(index, flag))
|
||||
{ RemoveFlag64(index, flag); }
|
||||
{
|
||||
RemoveFlag64(index, flag);
|
||||
}
|
||||
else
|
||||
{ SetFlag64(index, flag); }
|
||||
}
|
||||
|
|
@ -393,7 +411,9 @@ class Object
|
|||
void ApplyModFlag64(uint16 index, uint64 flag, bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{ SetFlag64(index, flag); }
|
||||
{
|
||||
SetFlag64(index, flag);
|
||||
}
|
||||
else
|
||||
{ RemoveFlag64(index, flag); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue