(svn r43) Fix: [ 982666 ] max_loan in editor bug (truelight)
authordominik
Fri, 13 Aug 2004 19:18:53 +0000
changeset 42 567add3568d6
parent 41 779fdff3b93d
child 43 3b93861c5478
(svn r43) Fix: [ 982666 ] max_loan in editor bug (truelight)
settings_gui.c
--- a/settings_gui.c	Fri Aug 13 18:55:25 2004 +0000
+++ b/settings_gui.c	Fri Aug 13 19:18:53 2004 +0000
@@ -596,6 +596,11 @@
 			}
 			DoCommandP(0, -1, _opt_mod_temp.diff_level, NULL, CMD_CHANGE_DIFFICULTY_LEVEL);
 			DeleteWindow(w);
+			// If we are in the editor, we should reload the economy.
+			//  This way when you load a game, the max loan and interest rate
+			//  are loaded correctly.
+			if (_game_mode == GM_EDITOR)
+				StartupEconomy();
 			break;
 		}
 		case 11: // Cancel button - close window