mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Cleanup] Gender constants cleanup (#3817)
* [Cleanup] Gender constants cleanup # Notes - Convert to a `Gender` namespace using `constexpr`. - Cleanup spots where we were using magic numbers for gender values. * Cleanup
This commit is contained in:
+2
-2
@@ -152,11 +152,11 @@ bool TitleManager::IsClientEligibleForTitle(Client *client, TitleEntry title)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (title.gender_id >= 0 && client->GetBaseGender() != title.gender_id) {
|
||||
if (title.gender_id >= Gender::Male && client->GetBaseGender() != title.gender_id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (title.class_id >= 0 && client->GetBaseClass() != title.class_id) {
|
||||
if (title.class_id >= Class::None && client->GetBaseClass() != title.class_id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user