Merge branch 'cpp-11' into save_ext
# Conflicts: # src/saveload/saveload.cpp # src/saveload/saveload.h
This commit is contained in:
@@ -1100,7 +1100,7 @@ static bool InvalidateNewGRFChangeWindows(int32 p1)
|
||||
|
||||
static bool InvalidateCompanyLiveryWindow(int32 p1)
|
||||
{
|
||||
InvalidateWindowClassesData(WC_COMPANY_COLOUR);
|
||||
InvalidateWindowClassesData(WC_COMPANY_COLOUR, -1);
|
||||
return RedrawScreen(p1);
|
||||
}
|
||||
|
||||
@@ -1179,6 +1179,7 @@ static bool MaxNoAIsChange(int32 i)
|
||||
ShowErrorMessage(STR_WARNING_NO_SUITABLE_AI, INVALID_STRING_ID, WL_CRITICAL);
|
||||
}
|
||||
|
||||
InvalidateWindowClassesData(WC_GAME_OPTIONS, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1381,7 +1382,7 @@ static void PrepareOldDiffCustom()
|
||||
*/
|
||||
static void HandleOldDiffCustom(bool savegame)
|
||||
{
|
||||
uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(4)) ? 1 : 0);
|
||||
uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(SLV_4)) ? 1 : 0);
|
||||
|
||||
if (!savegame) {
|
||||
/* If we did read to old_diff_custom, then at least one value must be non 0. */
|
||||
@@ -2229,7 +2230,7 @@ static void LoadSettingsXref(const SettingDesc *osd, void *object) {
|
||||
*/
|
||||
static void LoadSettings(const SettingDesc *osd, void *object)
|
||||
{
|
||||
extern uint16 _sl_version;
|
||||
extern SaveLoadVersion _sl_version;
|
||||
|
||||
for (; osd->save.cmd != SL_END; osd++) {
|
||||
if (osd->patx_name != NULL) continue;
|
||||
|
Reference in New Issue
Block a user