1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 16:45:34 +00:00

Make Bipedal creatures always able to walk and swim (Fixes #1509)

This is necessary since the vanilla CS greys out the walk/swim checkboxes when Bipedal is checked.
This commit is contained in:
scrawl 2014-06-15 23:09:51 +02:00
parent d5b97005ab
commit 3b7119ba0d

View file

@ -713,7 +713,7 @@ namespace MWClass
MWWorld::LiveCellRef<ESM::Creature> *ref =
ptr.get<ESM::Creature>();
return ref->mBase->mFlags & ESM::Creature::Swims;
return ref->mBase->mFlags & ESM::Creature::Swims || ref->mBase->mFlags & ESM::Creature::Bipedal;
}
bool Creature::canWalk(const MWWorld::Ptr &ptr) const
@ -721,7 +721,7 @@ namespace MWClass
MWWorld::LiveCellRef<ESM::Creature> *ref =
ptr.get<ESM::Creature>();
return ref->mBase->mFlags & ESM::Creature::Walks;
return ref->mBase->mFlags & ESM::Creature::Walks || ref->mBase->mFlags & ESM::Creature::Bipedal;
}
int Creature::getSndGenTypeFromName(const MWWorld::Ptr &ptr, const std::string &name)