mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Enchanting window stays open after a failed attempt (feature #5034)
This commit is contained in:
parent
5ccf7da17a
commit
485ed903c4
@ -115,6 +115,7 @@
|
||||
Feature #5010: Native graphics herbalism support
|
||||
Feature #5031: Make GetWeaponType function return different values for tools
|
||||
Feature #5033: Magic armor mitigation for creatures
|
||||
Feature #5034: Make enchanting window stay open after a failed attempt
|
||||
Feature #5036: Allow scripted faction leaving
|
||||
Task #4686: Upgrade media decoder to a more current FFmpeg API
|
||||
Task #4695: Optimize Distant Terrain memory consumption
|
||||
|
@ -366,13 +366,19 @@ namespace MWGui
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->playSound("enchant success");
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sEnchantmentMenu12}");
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode (GM_Enchanting);
|
||||
}
|
||||
else
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->playSound("enchant fail");
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage34}");
|
||||
if (!mEnchanting.getGem().isEmpty() && !mEnchanting.getGem().getRefData().getCount())
|
||||
{
|
||||
setSoulGem(MWWorld::Ptr());
|
||||
mEnchanting.nextCastStyle();
|
||||
updateLabels();
|
||||
updateEffectsView();
|
||||
}
|
||||
}
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode (GM_Enchanting);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user