Skip to main content
Topic: Deleting bridges (Read 3760 times) previous topic - next topic

Deleting bridges

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?

Re: Deleting bridges

Reply #1
But if I want to make an elevated bridge instead of a flat, how does the code recognize this?

Re: Deleting bridges

Reply #2
If you hold down ctrl, simutrans tries to create a flat bridge, otherwise it uses the old code.

Re: Deleting bridges

Reply #3
So this would enable more compact railway crossings?

This was my first idea for TTDpatch years ago (never coded). It brings back memories...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Deleting bridges

Reply #4
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...

Re: Deleting bridges

Reply #5
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.
Parsley, sage, rosemary, and maggikraut.

Re: Deleting bridges

Reply #6
Ok, this is already possible.