mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
Merged pull request #1827
This commit is contained in:
commit
9e6cba09a6
@ -324,15 +324,19 @@ namespace MWGui
|
|||||||
|
|
||||||
bool isReturnNeeded = playerStats.isParalyzed() || playerStats.isDead();
|
bool isReturnNeeded = playerStats.isParalyzed() || playerStats.isDead();
|
||||||
|
|
||||||
if (isReturnNeeded)
|
if (isReturnNeeded && key->type != Type_Item)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
else if (isDelayNeeded)
|
else if (isDelayNeeded && key->type != Type_Item)
|
||||||
|
{
|
||||||
mActivated = key;
|
mActivated = key;
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
mActivated = nullptr;
|
mActivated = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if (key->type == Type_Item || key->type == Type_MagicItem)
|
if (key->type == Type_Item || key->type == Type_MagicItem)
|
||||||
{
|
{
|
||||||
@ -370,6 +374,11 @@ namespace MWGui
|
|||||||
|
|
||||||
// delay weapon switching if player is busy
|
// delay weapon switching if player is busy
|
||||||
if (isDelayNeeded && (isWeapon || isTool))
|
if (isDelayNeeded && (isWeapon || isTool))
|
||||||
|
{
|
||||||
|
mActivated = key;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (isReturnNeeded && (isWeapon || isTool))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user