Loading

Paste #puldgo83o

  1. Index: src/saveload/newgrf_sl.cpp
  2. ===================================================================
  3. --- src/saveload/newgrf_sl.cpp  (revision 27770)
  4. +++ src/saveload/newgrf_sl.cpp  (working copy)
  5. @@ -96,8 +96,14 @@
  6.  {
  7.     Load_NGRF_common(_grfconfig);
  8.  
  9. -   /* Append static NewGRF configuration, but only if there are some NewGRFs. */
  10. -   if (_game_mode != GM_MENU || _all_grfs != NULL) AppendStaticGRFConfigs(&_grfconfig);
  11. +   if (_game_mode == GM_MENU) {
  12. +       /* Intro game must not have NewGRF. */
  13. +       if (_grfconfig != NULL) SlErrorCorrupt("The intro game must not use NewGRF");
  14. +       /* Activate intro NewGRFs (townnames) */
  15. +       ResetGRFConfig(false);
  16. +   } else {
  17. +       AppendStaticGRFConfigs(&_grfconfig);
  18. +   }
  19.  }
  20.  
  21.  static void Check_NGRF()
  22.  

Comments