The International Simutrans Forum

 

Author Topic: [patch] tram way remover  (Read 3855 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4870
  • Languages: EN, DE, AT
[patch] tram way remover
« on: January 13, 2010, 10:23:36 AM »
This patch adds way remover for tram tracks (which is broken and not working).

With this patch, the tram track remover solely removes tram tracks, connections by rail tracks are not recognized.

The rail track remover keeps its ability to remove tram tracks (but can be made more strict if requested).

Both removers delete signals of the other waytype if found on their route.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10642
  • Languages: De,EN,JP
Re: [patch] tram way remover
« Reply #1 on: January 13, 2010, 11:08:17 AM »
If the tram driver does only remove tram tracks, should it not rather stop than continue trough rails and delete tram tracks on the other side? Or should it not rather delete everything on its way (as I would expect it) be it rather rail or tram track (as the rail tool should do too).

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4870
  • Languages: EN, DE, AT
Re: [patch] tram way remover
« Reply #2 on: January 13, 2010, 11:32:16 AM »
If the tram driver does only remove tram tracks, should it not rather stop than continue trough rails and delete tram tracks on the other side?
In this implementation tram tracks connected by rail track are considered unconnected and are not deleted.
Quote
Or should it not rather delete everything on its way (as I would expect it) be it rather rail or tram track (as the rail tool should do too).
Then it would be equivalent to rail track remover.

In the trunk implementation, the tram track remover does not work at all.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10642
  • Languages: De,EN,JP
Re: [patch] tram way remover
« Reply #3 on: January 13, 2010, 01:41:49 PM »
Yes, since tram is not a real waytype anyway.

BUt I was thinking, like a tram remover allows starting and ending only on tram tracks and the track remover on tracks and they both delete everything in between.