mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Take in account caster's race height when launch magic bolt (bug #5209)
This commit is contained in:
parent
8dbbe42f21
commit
d1e0fa575e
@ -173,6 +173,7 @@
|
||||
Bug #5190: On-strike enchantments can be applied to and used with non-projectile ranged weapons
|
||||
Bug #5196: Dwarven ghosts do not use idle animations
|
||||
Bug #5206: A "class does not have NPC stats" error when player's follower kills an enemy with damage spell
|
||||
Bug #5209: Spellcasting ignores race height
|
||||
Feature #1774: Handle AvoidNode
|
||||
Feature #2229: Improve pathfinding AI
|
||||
Feature #3025: Analogue gamepad movement controls
|
||||
|
@ -262,7 +262,7 @@ namespace MWWorld
|
||||
{
|
||||
// Spawn at 0.75 * ActorHeight
|
||||
// Note: we ignore the collision box offset, this is required to make some flying creatures work as intended.
|
||||
pos.z() += mPhysics->getHalfExtents(caster).z() * 2 * 0.75;
|
||||
pos.z() += mPhysics->getRenderingHalfExtents(caster).z() * 2 * 0.75;
|
||||
}
|
||||
|
||||
if (MWBase::Environment::get().getWorld()->isUnderwater(caster.getCell(), pos)) // Underwater casting not possible
|
||||
|
Loading…
Reference in New Issue
Block a user