待辦事項 #48266

savegame3: Drop fit_nationset_to_players() call

啟用日期: 2023-06-21 15:03 最後更新: 2023-09-28 20:23

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

fit_nationset_to_players() :

To be called when loading an old savegame that predates nationsets.

Grepping shows that savegame3.c has a call, though the nationsets were in use by the time savegame3 format was first introduced.

Ticket History (3/9 Histories)

2023-06-21 15:03 Updated by: cazfi
  • New Ticket "savegame3: Drop fit_nationset_to_players() call" created
2023-06-23 15:51 Updated by: cazfi
2023-09-25 05:08 Updated by: cazfi
評語

Actually I think we still need this as a savegame sanity measure, e.g., to make sure that ruleset changes between saving and loading have not broken things.

So, I think this should be resolved by updating comments, both fit_nationset_to_players() side and the calling side.

2023-09-25 05:22 Updated by: cazfi
  • File 0016-Improve-fit_nationset_to_players-comments.patch (File ID: 13314) is attached
2023-09-25 05:24 Updated by: cazfi
  • File 0016-Improve-fit_nationset_to_players-comments.patch (File ID: 13314) is deleted
2023-09-25 05:32 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2023-09-28 20:23 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入