Skip to content

Commit

Permalink
make configs actually
Browse files Browse the repository at this point in the history
  • Loading branch information
hatersgit committed Mar 8, 2024
1 parent 6832920 commit e42ff16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,10 @@ bool Player::Create(ObjectGuid::LowType guidlow, CharacterCreateInfo* createInfo
}
// all item positions resolved
UpdateThorns();
if (Guild* guild = sGuildMgr->GetGuildById(DEFAULT_GUILD)) {
guild->AddMemberOnCreate(this);
if (sConfigMgr->GetBoolDefault("StarterGuild.autojoin", false)) {
if (Guild* guild = sGuildMgr->GetGuildById(sConfigMgr->GetIntDefault("StarterGuild.id", 0))) {
guild->AddMemberOnCreate(this);
}
}

CheckAllAchievementCriteria();
Expand Down
2 changes: 0 additions & 2 deletions src/server/game/Guilds/Guild.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ namespace WorldPackets
}
}

#define DEFAULT_GUILD 1

enum GuildMisc
{
GUILD_BANK_MAX_TABS = 6, // send by client for money log also
Expand Down

0 comments on commit e42ff16

Please sign in to comment.