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

0.6.1
David Cernat 8 years ago
parent a2e2ca7cab
commit 0595192129

@ -46,7 +46,7 @@ int FactionFunctions::GetFactionRank(unsigned short pid, unsigned int i) noexcep
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;
GET_PLAYER(pid, player, 0);

@ -22,7 +22,7 @@ public:
static const char *GetFactionId(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;
private:

Loading…
Cancel
Save