FS#5313 - GameScript function for CmdClearArea

Attached to Project: OpenTTD
Opened by xOR (xOR) - Sunday, 30 September 2012, 16:53 GMT
Type Feature Request
Category Script → Goal/Game script
Status New
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 1.2.2
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 5
Private No


Right now there is only GSTile.DemolishTile(tile) which invokes the DoCommand CmdLandscapeClear. However, there is no function to invoke the DoCommand CmdClearArea, so if the GS needs to clear a bigger area it has to call GSTile.DemolishTile() lots of times from a loop, causing lots of unnecessary DoCommands.
Therefore a new function should be added, e.g. GSTile.DemolishTiles(start, end), which internally uses the CmdClearArea DoCommand to clear an area of tiles.
This task depends upon