From 7de20df3791e86c0692b05f94a68b96f45bc7a33 Mon Sep 17 00:00:00 2001 From: belugas Date: Tue, 1 May 2007 17:16:51 +0000 Subject: (svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries Based on FS#289, by pitt2 --- src/openttd.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index b5a8b385f..1ba3b5d46 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1938,6 +1938,17 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(58)) { + /* patch difficulty number_industries other then zero get bumped to +1 + * since a new option (very low at position1) has been added */ + if (_opt.diff.number_industries > 0) { + _opt.diff.number_industries++; + } + + /* Same goes for number of towns, although no test is needed, just an increment */ + _opt.diff.number_towns++; + } + return true; } -- cgit v1.2.3-54-g00ecf