The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: kierongreen on May 18, 2012, 11:48:19 PM

Title: Bugfix 5526 beginner mode and just-in-time
Post by: kierongreen on May 18, 2012, 11:48:19 PM
It seems that just in time is not set correctly for new maps with beginner settings, rather strangely the following seems to fix it for me:

Index: simworld.cc
===================================================================
--- simworld.cc    (revision 5726)
+++ simworld.cc    (working copy)
@@ -1332,7 +1332,7 @@

     if(sets->get_beginner_mode()) {
         warenbauer_t::set_multiplier(settings.get_beginner_price_factor());
-        sets->set_just_in_time( 0 );
+        settings.set_just_in_time( false );
     }
     else {
         warenbauer_t::set_multiplier( 1000 );