mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:23:52 +00:00
added missing run flag for NPCs
This commit is contained in:
parent
9a3158675a
commit
151560b882
2 changed files with 9 additions and 3 deletions
|
@ -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 a new issue