mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11715] Remove World::setConfigPos for uint32 and move check to all uint32 config values.
As part changes move to int32 list as expected by values: * CONFIG_INT32_QUEST_HIGH_LEVEL_HIDE_DIFF * CONFIG_INT32_QUEST_LOW_LEVEL_HIDE_DIFF Please report if mangosd will report unexpected error (< 0) for some signed config option. I check manually but maybe miss some... Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1a263cb6a0
commit
f4be64ff48
5 changed files with 30 additions and 40 deletions
|
|
@ -13608,7 +13608,7 @@ bool Player::CanSeeStartQuest(Quest const *pQuest) const
|
|||
SatisfyQuestMonth(pQuest, false) &&
|
||||
pQuest->IsActive())
|
||||
{
|
||||
return getLevel() + sWorld.getConfig(CONFIG_UINT32_QUEST_HIGH_LEVEL_HIDE_DIFF) >= pQuest->GetMinLevel();
|
||||
return int32(getLevel()) + sWorld.getConfig(CONFIG_INT32_QUEST_HIGH_LEVEL_HIDE_DIFF) >= int32(pQuest->GetMinLevel());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue