mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
End combat when the target is outside the active grid
This commit is contained in:
parent
d1c602ce85
commit
358fa98bd3
@ -112,7 +112,7 @@ namespace MWMechanics
|
|||||||
|
|
||||||
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtrViaActorId(mTargetActorId);
|
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtrViaActorId(mTargetActorId);
|
||||||
if (target.isEmpty())
|
if (target.isEmpty())
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (!target.getRefData().getCount()
|
if (!target.getRefData().getCount()
|
||||||
|| !target.getRefData().isEnabled() // Really we should be checking whether the target is currently
|
|| !target.getRefData().isEnabled() // Really we should be checking whether the target is currently
|
||||||
|
Loading…
x
Reference in New Issue
Block a user