mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
added missing run flag for NPCs
This commit is contained in:
parent
9a3158675a
commit
151560b882
@ -393,7 +393,8 @@ namespace MWClass
|
||||
{
|
||||
case Run:
|
||||
|
||||
throw std::runtime_error ("run stance not manually setable for NPCs");
|
||||
stats.mRun = set;
|
||||
break;
|
||||
|
||||
case Sneak:
|
||||
|
||||
@ -415,7 +416,10 @@ namespace MWClass
|
||||
{
|
||||
case Run:
|
||||
|
||||
return ignoreForce ? false : stats.mForceRun;
|
||||
if (!ignoreForce && stats.mForceRun)
|
||||
return true;
|
||||
|
||||
return stats.mRun;
|
||||
|
||||
case Sneak:
|
||||
|
||||
|
@ -21,10 +21,12 @@ namespace MWMechanics
|
||||
|
||||
bool mForceRun;
|
||||
bool mForceSneak;
|
||||
bool mRun;
|
||||
bool mSneak;
|
||||
bool mCombat;
|
||||
|
||||
NpcStats() : mForceRun (false), mForceSneak (false), mSneak (false), mCombat (false) {}
|
||||
NpcStats() : mForceRun (false), mForceSneak (false), mRun (false), mSneak (false),
|
||||
mCombat (false) {}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user