1
0
Fork 1
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:
Marc Zinnschlag 2011-02-10 11:08:25 +01:00
parent 9a3158675a
commit 151560b882
2 changed files with 9 additions and 3 deletions

View file

@ -393,7 +393,8 @@ namespace MWClass
{ {
case Run: case Run:
throw std::runtime_error ("run stance not manually setable for NPCs"); stats.mRun = set;
break;
case Sneak: case Sneak:
@ -415,7 +416,10 @@ namespace MWClass
{ {
case Run: case Run:
return ignoreForce ? false : stats.mForceRun; if (!ignoreForce && stats.mForceRun)
return true;
return stats.mRun;
case Sneak: case Sneak:

View file

@ -21,10 +21,12 @@ namespace MWMechanics
bool mForceRun; bool mForceRun;
bool mForceSneak; bool mForceSneak;
bool mRun;
bool mSneak; bool mSneak;
bool mCombat; bool mCombat;
NpcStats() : mForceRun (false), mForceSneak (false), mSneak (false), mCombat (false) {} NpcStats() : mForceRun (false), mForceSneak (false), mRun (false), mSneak (false),
mCombat (false) {}
}; };
} }