1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

one more mismatch fixed

This commit is contained in:
mrcheko 2014-01-17 20:55:21 +02:00
parent 46a4790cb1
commit 435bbdd530

View File

@ -261,8 +261,8 @@ namespace MWMechanics
//then start attacking
float speed1 = cls.getSpeed(actor);
float speed2 = mTarget.getClass().getSpeed(mTarget);
if(actor.getClass().getMovementSettings(mTarget).mPosition[0] == 0
&& actor.getClass().getMovementSettings(mTarget).mPosition[1] == 0)
if(mTarget.getClass().getMovementSettings(mTarget).mPosition[0] == 0
&& mTarget.getClass().getMovementSettings(mTarget).mPosition[1] == 0)
speed2 = 0;
float s1 = distBetween - weapRange;