[Server] Make GetFactionExpelledState() return a bool instead of an int

This commit is contained in:
David Cernat 2017-05-18 21:51:24 +03:00
parent a2e2ca7cab
commit 0595192129
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ int FactionFunctions::GetFactionRank(unsigned short pid, unsigned int i) noexcep
return player->factionChanges.factions.at(i).rank; return player->factionChanges.factions.at(i).rank;
} }
int FactionFunctions::GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept bool FactionFunctions::GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept
{ {
Player *player; Player *player;
GET_PLAYER(pid, player, 0); GET_PLAYER(pid, player, 0);

View file

@ -22,7 +22,7 @@ public:
static const char *GetFactionId(unsigned short pid, unsigned int i) noexcept; static const char *GetFactionId(unsigned short pid, unsigned int i) noexcept;
static int GetFactionRank(unsigned short pid, unsigned int i) noexcept; static int GetFactionRank(unsigned short pid, unsigned int i) noexcept;
static int GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept; static bool GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept;
static void SendFactionChanges(unsigned short pid) noexcept; static void SendFactionChanges(unsigned short pid) noexcept;
private: private: