mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Some minor fixes.
* Mount options will no longer display in unsupported protocols. * Fixed a bug with opening outfit window while its already open. * Fixed base speed stat when using unsupported protocol.
This commit is contained in:
@@ -257,10 +257,12 @@ function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
if creatureThing:isLocalPlayer() then
|
||||
menu:addOption(tr('Set Outfit'), function() g_game.requestOutfit() end)
|
||||
|
||||
if not localPlayer:isMounted() then
|
||||
menu:addOption(tr('Mount'), function() localPlayer:mount() end)
|
||||
else
|
||||
menu:addOption(tr('Dismount'), function() localPlayer:dismount() end)
|
||||
if g_game.getFeature(GamePlayerMounts) then
|
||||
if not localPlayer:isMounted() then
|
||||
menu:addOption(tr('Mount'), function() localPlayer:mount() end)
|
||||
else
|
||||
menu:addOption(tr('Dismount'), function() localPlayer:dismount() end)
|
||||
end
|
||||
end
|
||||
|
||||
if creatureThing:isPartyMember() then
|
||||
|
Reference in New Issue
Block a user