OpenTTD / OpenTTD

OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
https://www.openttd.org/
Other
6.02k stars 843 forks source link

Feature: Add the ability to clone an area with structures #12657

Open StanislavShamrai opened 3 weeks ago

StanislavShamrai commented 3 weeks ago

Motivation / Problem

@StanislavShamrai wants to automate a process by creating a new object using existing logic.

Description

You can build larger paths by simply copying and pasting some of the existing intersections and paths. You can rotate an area by inserting it at a different angle.

Limitations

This was created for railroad tracks, tunnels, and bridges, but the same behavior may be added for other types of tracks and structures in the future.

Checklist for review

example: clone-area.webm

PeterN commented 2 weeks ago

The list of commits looks a bit messy, did you mean to squash it again?

Additionally there are a lot of seemingly unrelated changes into table/sprites.h which might be better in a separate PR?