The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: gerw on February 19, 2009, 07:59:37 am

Title: Deleting bridges
Post by: gerw on February 19, 2009, 07:59:37 am
I recently made a new patch, which allows to build bridges with steep slopes on both sides (like the one in the image). That can be done easily, but one new problem is arising: You can't delete these bridges, cause you can delete bridges only on their first tile (slope), but this "new" bridges doesn't have such a tile and thus they can't be deleted. (Now I've spotted: They can be deleted with the way deletion tool).

You can easy change some other code and then, whenever applying the remove tool to a bridge ground (which is empty) the whole bridge is deleted. But maybe then you delete some bridges accidentially?

Any ideas?
Title: Re: Deleting bridges
Post by: prissi on February 19, 2009, 08:38:36 am
But if I want to make an elevated bridge instead of a flat, how does the code recognize this?
Title: Re: Deleting bridges
Post by: gerw on February 19, 2009, 08:52:32 am
If you hold down ctrl, simutrans tries to create a flat bridge, otherwise it uses the old code.
Title: Re: Deleting bridges
Post by: VS on February 19, 2009, 11:12:10 am
So this would enable more compact railway crossings?

This was my first idea for TTDpatch years ago (never coded). It brings back memories...
Title: Re: Deleting bridges
Post by: isidoro on February 19, 2009, 08:20:28 pm
Perhaps the same key used for going up/down one level in underground mode could be used to elevate the cursor one tile up/down when editing...
Title: Re: Deleting bridges
Post by: Dwachs on February 22, 2009, 07:38:55 pm
I think the most consistent way to delete such a bridge, is by the way-remover tool. Deleting a bridge if one clicks accidentally with the remover-tool on some tile (not a ramp) would be very irritating.
Title: Re: Deleting bridges
Post by: gerw on February 22, 2009, 08:28:51 pm
Ok, this is already possible.