OpenTTD

Tasklist

FS#1692 - modified client can cause assert when removing road

Attached to Project: OpenTTD
Opened by Zdeněk Sojka (SmatZ) - Thursday, 24 January 2008, 15:03 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

r10053 and newer

issuing CMD_REMOVE_ROAD with p2 bit 6 set may cause an assertion because test and exec run will differ when removing road. (test run - cost is returned, exec run - fails, there is tram track)
Client has to be modified to issue this command. (remove road from rail+road+tram crossing with p2.bit6 = 1)

There are several ways to solve this - forbid CMD_REMOVE_ROAD for network, use some helper function called with special parameter from CmdRemoveLongRoad, or allow removing more road types in one command (or some other way to fix clearing crossing than in r10053)
This task depends upon

Closed by  Zdeněk Sojka (SmatZ)
Monday, 28 January 2008, 12:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  r11998

Loading...