mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
Merge pull request #2378 from Capostrophic/enchanting
Enchanting window stays open after a failed attempt (feature #5034)
This commit is contained in:
commit
5266520e20
2 changed files with 9 additions and 2 deletions
|
@ -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…
Reference in a new issue