mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
travis build fix
This commit is contained in:
parent
f57858b750
commit
05794505c8
2 changed files with 2 additions and 2 deletions
|
@ -429,7 +429,7 @@ namespace MWMechanics
|
||||||
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find(mSpellId);
|
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find(mSpellId);
|
||||||
int types = getRangeTypes(spell->mEffects);
|
int types = getRangeTypes(spell->mEffects);
|
||||||
|
|
||||||
isRanged = (types & RangeTypes::Target);
|
isRanged = (types & Target);
|
||||||
return suggestCombatRange(types);
|
return suggestCombatRange(types);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ namespace MWMechanics
|
||||||
osg::Vec3f dir = to - from;
|
osg::Vec3f dir = to - from;
|
||||||
dir.z() = 0;
|
dir.z() = 0;
|
||||||
dir.normalize();
|
dir.normalize();
|
||||||
float verticalOffset = 200; // instead of '200' here we want the height of the actor
|
float verticalOffset = 200; // instead of '200' here we want the height of the actor
|
||||||
osg::Vec3f _from = from + dir*offsetXY + osg::Z_AXIS * verticalOffset;
|
osg::Vec3f _from = from + dir*offsetXY + osg::Z_AXIS * verticalOffset;
|
||||||
|
|
||||||
// cast up-down ray and find height in world space of hit
|
// cast up-down ray and find height in world space of hit
|
||||||
|
|
Loading…
Reference in a new issue