mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[12065] Fix various warnings
This commit is contained in:
parent
5f4d61928f
commit
84080ee5d3
27 changed files with 91 additions and 89 deletions
|
|
@ -404,17 +404,17 @@ LootSlotType LootItem::GetSlotTypeForSharedLoot(PermissionTypes permission, Play
|
|||
|
||||
switch (permission)
|
||||
{
|
||||
case GROUP_PERMISSION:
|
||||
return (is_blocked || is_underthreshold) ? LOOT_SLOT_NORMAL : LOOT_SLOT_VIEW;
|
||||
case ALL_PERMISSION:
|
||||
return LOOT_SLOT_NORMAL;
|
||||
case OWNER_PERMISSION:
|
||||
return LOOT_SLOT_OWNER;
|
||||
case GROUP_PERMISSION:
|
||||
return (is_blocked || is_underthreshold) ? LOOT_SLOT_NORMAL : LOOT_SLOT_VIEW;
|
||||
case MASTER_PERMISSION:
|
||||
return !is_underthreshold ? LOOT_SLOT_MASTER : LOOT_SLOT_NORMAL;
|
||||
case OWNER_PERMISSION:
|
||||
return LOOT_SLOT_OWNER;
|
||||
default:
|
||||
return MAX_LOOT_SLOT_TYPE;
|
||||
}
|
||||
|
||||
return MAX_LOOT_SLOT_TYPE;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue