fixed distance computation problem

This commit is contained in:
SpaceToad 2014-04-02 07:14:40 +02:00
parent 6549ead866
commit 635727942a

View file

@ -66,7 +66,7 @@ public class BuildingItem implements IBuilder {
// Since the item is going to travel up as well, this is an
// approximation of the additional distance to go through.
maxLifetime += c * 2;
maxLifetime = c * 2;
vx = dx / maxLifetime;
vy = dy / maxLifetime;