mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Few more portability fixes
This commit is contained in:
parent
90c87a05e6
commit
698ef56df9
@ -1518,11 +1518,11 @@ bool Bot::IsValidName(std::string& name)
|
||||
{
|
||||
if (name.length() < 4)
|
||||
return false;
|
||||
if (!IsCharUpper(name[0]))
|
||||
if (!isupper(name[0]))
|
||||
return false;
|
||||
|
||||
for (int i = 1; i < name.length(); ++i) {
|
||||
if (!IsCharLower(name[i]) && name[i] != '_') {
|
||||
if (!islower(name[i]) && name[i] != '_') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -990,19 +990,19 @@ private:
|
||||
if (l_size_type < r_size_type)
|
||||
return true;
|
||||
if (l_size_type == BCEnum::SzT_Enlarge && r_size_type == BCEnum::SzT_Enlarge) {
|
||||
if (EQ_STBASE(l, r, target_type) && GT_SPELLS(l, r, base, 1))
|
||||
if (EQ_STBASE(l, r, target_type) && GT_SPELLS_EFFECT_ID(l, r, base, 1))
|
||||
return true;
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS(l, r, base, 1) && GT_STBASE(l, r, spell_level))
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS_EFFECT_ID(l, r, base, 1) && GT_STBASE(l, r, spell_level))
|
||||
return true;
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS(l, r, base, 1) && EQ_STBASE(l, r, spell_level) && LT_STBASE(l, r, caster_class))
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS_EFFECT_ID(l, r, base, 1) && EQ_STBASE(l, r, spell_level) && LT_STBASE(l, r, caster_class))
|
||||
return true;
|
||||
}
|
||||
if (l_size_type == BCEnum::SzT_Reduce && r_size_type == BCEnum::SzT_Reduce) {
|
||||
if (EQ_STBASE(l, r, target_type) && LT_SPELLS(l, r, base, 1))
|
||||
if (EQ_STBASE(l, r, target_type) && LT_SPELLS_EFFECT_ID(l, r, base, 1))
|
||||
return true;
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS(l, r, base, 1) && GT_STBASE(l, r, spell_level))
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS_EFFECT_ID(l, r, base, 1) && GT_STBASE(l, r, spell_level))
|
||||
return true;
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS(l, r, base, 1) && EQ_STBASE(l, r, spell_level) && LT_STBASE(l, r, caster_class))
|
||||
if (EQ_STBASE(l, r, target_type) && EQ_SPELLS_EFFECT_ID(l, r, base, 1) && EQ_STBASE(l, r, spell_level) && LT_STBASE(l, r, caster_class))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user