diff options
author | orwell96 <orwell@bleipb.de> | 2018-11-20 12:02:03 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-11-20 12:03:34 +0100 |
commit | df29faccc05a939b1f20b60d9b497c08eb2d417e (patch) | |
tree | 027ba66804d08311fa2ad0b62755ce49f1134e16 | |
parent | 37166b5c142b6b3578e589b75b86d2e11345f49d (diff) | |
download | advtrains-df29faccc05a939b1f20b60d9b497c08eb2d417e.tar.gz advtrains-df29faccc05a939b1f20b60d9b497c08eb2d417e.tar.bz2 advtrains-df29faccc05a939b1f20b60d9b497c08eb2d417e.zip |
Remove superfluous "tarvelocity" assignments
-rw-r--r-- | advtrains/trainlogic.lua | 1 | ||||
-rw-r--r-- | advtrains/wagons.lua | 2 | ||||
-rw-r--r-- | advtrains_train_subway/init.lua | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index e8518e7..8cfad4c 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -1002,7 +1002,6 @@ function advtrains.do_connect_trains(first_id, second_id) advtrains.remove_train(second_id) first.velocity=0 - first.tarvelocity=0 advtrains.update_trainpart_properties(first_id) advtrains.couple_invalidate(first) 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
diff --git a/advtrains_train_subway/init.lua b/advtrains_train_subway/init.lua index c1a50e2..233f5dc 100644 --- a/advtrains_train_subway/init.lua +++ b/advtrains_train_subway/init.lua @@ -114,7 +114,6 @@ advtrains.register_wagon("subway_wagon", { }) self.line_cache=line elseif self.line_cache~=nil and line==nil then - atdebug("clear line") self.object:set_properties({ textures=self.textures, }) |