FS#3034 - Save() called twice

Attached to Project: OpenTTD
Opened by Lasse Krogh Thygesen (Chruker) - Wednesday, 15 July 2009, 00:09 GMT
Last edited by Thijs Marinussen (Yexo) - Wednesday, 15 July 2009, 19:47 GMT
Type Bug
Category Script → NoAI
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When OpenTTD is saving a game, the Save() function is called twice.

While Yexo have kindly explained how it doesnt matter, it still means that the AIs are collecting the data twice for each save. That is why I marked it as very low.

So for performance reasons a single call would be preferable.
This task depends upon

Closed by  Thijs Marinussen (Yexo)
Wednesday, 15 July 2009, 19:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r16834
Comment by frosch (frosch) - Wednesday, 15 July 2009, 17:16 GMT
Attached is an AI that breaks OTTDs saving and produces invalid savegames.