OpenTTD

Tasklist

FS#2994 - _animated_tile_list can contain invalid tiles

Attached to Project: OpenTTD
Opened by Zdeněk Sojka (SmatZ) - Thursday, 25 June 2009, 20:32 GMT
Last edited by Remko Bijker (Rubidium) - Wednesday, 01 July 2009, 14:51 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Animated tiles aren't sometimes removed, the list is filling with invalid animated tiles (MP_CLEAR and similiar). Those are never removed, slowing things down a bit.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Wednesday, 01 July 2009, 14:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r16709
Comment by Remko Bijker (Rubidium) - Wednesday, 01 July 2009, 08:51 GMT
Are there savegames that show this 'addition' of invalid animated tiles? Or are those just 'old' savegames?
Comment by frosch (frosch) - Wednesday, 01 July 2009, 14:40 GMT
Animated tiles need to be cleared when tiles are bulldozed. Currently this only happens for houses and airports.

Missing are (at least):
a) Industry tiles removed due to closing industry.
b) Industry tiles removed due to building oilrig.
c) Rail Station tiles removed due to removing them
d) Rail Station tiles removed due to overbuilding with different station.
e) Waypoint tiles, if they had animation supported.

Maybe more. (e.g. maybe house removed due to building bank)

Additionally animated tiles should be removed from previous savegames, when the tiletype has no animation proc.

Loading...