Skip to content

Commit 070d803

Browse files
committed
Core/Misc: Reduce differences between branches
1 parent a99868b commit 070d803

File tree

8 files changed

+49
-229
lines changed

8 files changed

+49
-229
lines changed

src/server/game/Entities/Player/Player.cpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -109,51 +109,6 @@
109109

110110
#define ZONE_UPDATE_INTERVAL (1*IN_MILLISECONDS)
111111

112-
enum CharacterFlags
113-
{
114-
CHARACTER_FLAG_NONE = 0x00000000,
115-
CHARACTER_FLAG_UNK1 = 0x00000001,
116-
CHARACTER_FLAG_UNK2 = 0x00000002,
117-
CHARACTER_LOCKED_FOR_TRANSFER = 0x00000004,
118-
CHARACTER_FLAG_UNK4 = 0x00000008,
119-
CHARACTER_FLAG_UNK5 = 0x00000010,
120-
CHARACTER_FLAG_UNK6 = 0x00000020,
121-
CHARACTER_FLAG_UNK7 = 0x00000040,
122-
CHARACTER_FLAG_UNK8 = 0x00000080,
123-
CHARACTER_FLAG_UNK9 = 0x00000100,
124-
CHARACTER_FLAG_UNK10 = 0x00000200,
125-
CHARACTER_FLAG_HIDE_HELM = 0x00000400,
126-
CHARACTER_FLAG_HIDE_CLOAK = 0x00000800,
127-
CHARACTER_FLAG_UNK13 = 0x00001000,
128-
CHARACTER_FLAG_GHOST = 0x00002000,
129-
CHARACTER_FLAG_RENAME = 0x00004000,
130-
CHARACTER_FLAG_UNK16 = 0x00008000,
131-
CHARACTER_FLAG_UNK17 = 0x00010000,
132-
CHARACTER_FLAG_UNK18 = 0x00020000,
133-
CHARACTER_FLAG_UNK19 = 0x00040000,
134-
CHARACTER_FLAG_UNK20 = 0x00080000,
135-
CHARACTER_FLAG_UNK21 = 0x00100000,
136-
CHARACTER_FLAG_UNK22 = 0x00200000,
137-
CHARACTER_FLAG_UNK23 = 0x00400000,
138-
CHARACTER_FLAG_UNK24 = 0x00800000,
139-
CHARACTER_FLAG_LOCKED_BY_BILLING = 0x01000000,
140-
CHARACTER_FLAG_DECLINED = 0x02000000,
141-
CHARACTER_FLAG_UNK27 = 0x04000000,
142-
CHARACTER_FLAG_UNK28 = 0x08000000,
143-
CHARACTER_FLAG_UNK29 = 0x10000000,
144-
CHARACTER_FLAG_UNK30 = 0x20000000,
145-
CHARACTER_FLAG_UNK31 = 0x40000000,
146-
CHARACTER_FLAG_UNK32 = 0x80000000
147-
};
148-
149-
enum CharacterCustomizeFlags
150-
{
151-
CHAR_CUSTOMIZE_FLAG_NONE = 0x00000000,
152-
CHAR_CUSTOMIZE_FLAG_CUSTOMIZE = 0x00000001, // name, gender, etc...
153-
CHAR_CUSTOMIZE_FLAG_FACTION = 0x00010000, // name, gender, faction, etc...
154-
CHAR_CUSTOMIZE_FLAG_RACE = 0x00100000 // name, gender, race, etc...
155-
};
156-
157112
// corpse reclaim times
158113
#define DEATH_EXPIRE_STEP (5*MINUTE)
159114
#define MAX_DEATH_COUNT 3

src/server/game/Globals/ObjectMgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7248,7 +7248,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
72487248
{
72497249
uint32 oldMSTime = getMSTime();
72507250

7251-
_areaTriggerStore.clear(); // need for reload case
7251+
_areaTriggerStore.clear(); // need for reload case
72527252

72537253
// 0 1 2 3 4 5
72547254
QueryResult result = WorldDatabase.Query("SELECT ID, target_map, target_position_x, target_position_y, target_position_z, target_orientation FROM areatrigger_teleport");

src/server/game/Handlers/AddonHandler.cpp

Lines changed: 0 additions & 139 deletions
This file was deleted.

src/server/game/Handlers/AddonHandler.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/server/game/Handlers/CharacterHandler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder const& holder)
984984
if (pCurrChar->IsGameMaster())
985985
SendNotification(LANG_GM_ON);
986986

987-
std::string IP_str = GetRemoteAddress();
988987
TC_LOG_INFO("entities.player.character", "Account: {} (IP: {}) Login Character:[{}] {} Level: {}, XP: {}/{} ({} left)",
989-
GetAccountId(), IP_str, pCurrChar->GetName(), pCurrChar->GetGUID().ToString(), pCurrChar->GetLevel(),
988+
GetAccountId(), GetRemoteAddress(), pCurrChar->GetName(), pCurrChar->GetGUID().ToString(), pCurrChar->GetLevel(),
990989
_player->GetXP(), _player->GetXPForNextLevel(), std::max(0, (int32)_player->GetXPForNextLevel() - (int32)_player->GetXP()));
991990

992991
if (!pCurrChar->IsStandState() && !pCurrChar->HasUnitState(UNIT_STATE_STUNNED))

src/server/scripts/Commands/cs_gobject.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,7 @@ class gobject_commandscript : public CommandScript
538538
type = gameObjectInfo->type;
539539
displayId = gameObjectInfo->displayId;
540540
name = gameObjectInfo->name;
541-
if (type == GAMEOBJECT_TYPE_CHEST)
542-
lootId = gameObjectInfo->chest.lootId;
543-
else if (type == GAMEOBJECT_TYPE_FISHINGHOLE)
544-
lootId = gameObjectInfo->fishinghole.lootId;
541+
lootId = gameObjectInfo->GetLootId();
545542

546543
// If we have a real object, send some info about it
547544
if (thisGO)

src/server/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ struct go_celestial_planetarium_access : public GameObjectAI
981981
return true;
982982

983983
bool hasKey = true;
984-
if (LockEntry const* lock = sLockStore.LookupEntry(me->GetGOInfo()->goober.lockId))
984+
if (LockEntry const* lock = sLockStore.LookupEntry(me->GetGOInfo()->GetLockId()))
985985
{
986986
hasKey = false;
987987
for (uint8 i = 0; i < MAX_LOCK_CASE; ++i)

src/server/shared/SharedDefines.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,51 @@ enum SheathTypes
748748

749749
#define MAX_SHEATHETYPE 8
750750

751+
enum CharacterFlags
752+
{
753+
CHARACTER_FLAG_NONE = 0x00000000,
754+
CHARACTER_FLAG_UNK1 = 0x00000001,
755+
CHARACTER_FLAG_UNK2 = 0x00000002,
756+
CHARACTER_LOCKED_FOR_TRANSFER = 0x00000004,
757+
CHARACTER_FLAG_UNK4 = 0x00000008,
758+
CHARACTER_FLAG_UNK5 = 0x00000010,
759+
CHARACTER_FLAG_UNK6 = 0x00000020,
760+
CHARACTER_FLAG_UNK7 = 0x00000040,
761+
CHARACTER_FLAG_UNK8 = 0x00000080,
762+
CHARACTER_FLAG_UNK9 = 0x00000100,
763+
CHARACTER_FLAG_UNK10 = 0x00000200,
764+
CHARACTER_FLAG_HIDE_HELM = 0x00000400,
765+
CHARACTER_FLAG_HIDE_CLOAK = 0x00000800,
766+
CHARACTER_FLAG_UNK13 = 0x00001000,
767+
CHARACTER_FLAG_GHOST = 0x00002000,
768+
CHARACTER_FLAG_RENAME = 0x00004000,
769+
CHARACTER_FLAG_UNK16 = 0x00008000,
770+
CHARACTER_FLAG_UNK17 = 0x00010000,
771+
CHARACTER_FLAG_UNK18 = 0x00020000,
772+
CHARACTER_FLAG_UNK19 = 0x00040000,
773+
CHARACTER_FLAG_UNK20 = 0x00080000,
774+
CHARACTER_FLAG_UNK21 = 0x00100000,
775+
CHARACTER_FLAG_UNK22 = 0x00200000,
776+
CHARACTER_FLAG_UNK23 = 0x00400000,
777+
CHARACTER_FLAG_UNK24 = 0x00800000,
778+
CHARACTER_FLAG_LOCKED_BY_BILLING = 0x01000000,
779+
CHARACTER_FLAG_DECLINED = 0x02000000,
780+
CHARACTER_FLAG_UNK27 = 0x04000000,
781+
CHARACTER_FLAG_UNK28 = 0x08000000,
782+
CHARACTER_FLAG_UNK29 = 0x10000000,
783+
CHARACTER_FLAG_UNK30 = 0x20000000,
784+
CHARACTER_FLAG_UNK31 = 0x40000000,
785+
CHARACTER_FLAG_UNK32 = 0x80000000
786+
};
787+
788+
enum CharacterCustomizeFlags
789+
{
790+
CHAR_CUSTOMIZE_FLAG_NONE = 0x00000000,
791+
CHAR_CUSTOMIZE_FLAG_CUSTOMIZE = 0x00000001, // name, gender, etc...
792+
CHAR_CUSTOMIZE_FLAG_FACTION = 0x00010000, // name, gender, faction, etc...
793+
CHAR_CUSTOMIZE_FLAG_RACE = 0x00100000 // name, gender, race, etc...
794+
};
795+
751796
enum CharacterSlot
752797
{
753798
SLOT_HEAD = 0,

0 commit comments

Comments
 (0)