From df29faccc05a939b1f20b60d9b497c08eb2d417e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 20 Nov 2018 12:02:03 +0100 Subject: Remove superfluous "tarvelocity" assignments --- advtrains/wagons.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'advtrains/wagons.lua') diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 0a4f217..c4210be 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -438,11 +438,9 @@ function wagon:on_step(dtime) --enable collision mercy to get trains stuck in walls out of walls --actually do nothing except limiting the velocity to 1 train.velocity=math.min(train.velocity, 1) - train.tarvelocity=math.min(train.tarvelocity, 1) else train.recently_collided_with_env=true train.velocity=0 - train.tarvelocity=0 self.collision_count=(self.collision_count or 0)+1 end else -- cgit v1.2.3