~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/genworld.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: genworld.cpp 16247 2009-05-06 22:37:19Z rubidium $ */
 
1
/* $Id: genworld.cpp 17158 2009-08-12 15:22:50Z rubidium $ */
2
2
 
3
3
/** @file genworld.cpp Functions to generate a map. */
4
4
 
39
39
void StartupCompanies();
40
40
void StartupDisasters();
41
41
 
42
 
void InitializeGame(uint size_x, uint size_y, bool reset_date);
 
42
void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settings);
43
43
 
44
44
/* Please only use this variable in genworld.h and genworld.c and
45
45
 *  nowhere else. For speed improvements we need it to be global, but
256
256
 * @param size_x The X-size of the map.
257
257
 * @param size_y The Y-size of the map.
258
258
 */
259
 
void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y)
 
259
void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y, bool reset_settings)
260
260
{
261
261
        if (_gw.active) return;
262
262
        _gw.mode   = mode;
281
281
        GfxLoadSprites();
282
282
        LoadStringWidthTable();
283
283
 
284
 
        InitializeGame(_gw.size_x, _gw.size_y, false);
 
284
        InitializeGame(_gw.size_x, _gw.size_y, false, reset_settings);
285
285
        PrepareGenerateWorldProgress();
286
286
 
287
287
        /* Re-init the windowing system */