File diff r25794:d821c4b24583 → r25795:e4c377f6ca9d
src/terraform_gui.cpp
Show inline comments
 
@@ -8,6 +8,7 @@
 
/** @file terraform_gui.cpp GUI related to terraforming the map. */
 

	
 
#include "stdafx.h"
 
#include "core/backup_type.hpp"
 
#include "clear_map.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
@@ -54,7 +55,7 @@ static void GenerateDesertArea(TileIndex
 
{
 
	if (_game_mode != GM_EDITOR) return;
 

	
 
	_generating_world = true;
 
	Backup<bool> old_generating_world(_generating_world, true, FILE_LINE);
 

	
 
	TileArea ta(start, end);
 
	for (TileIndex tile : ta) {
 
@@ -62,7 +63,7 @@ static void GenerateDesertArea(TileIndex
 
		DoCommandP(tile, 0, 0, CMD_LANDSCAPE_CLEAR);
 
		MarkTileDirtyByTile(tile);
 
	}
 
	_generating_world = false;
 
	old_generating_world.Restore();
 
	InvalidateWindowClassesData(WC_TOWN_VIEW, 0);
 
}
 

	
 
@@ -497,7 +498,7 @@ static void ResetLandscapeConfirmationCa
 
	if (confirmed) {
 
		/* Set generating_world to true to get instant-green grass after removing
 
		 * company property. */
 
		_generating_world = true;
 
		Backup<bool> old_generating_world(_generating_world, true, FILE_LINE);
 

	
 
		/* Delete all companies */
 
		for (Company *c : Company::Iterate()) {
 
@@ -505,7 +506,7 @@ static void ResetLandscapeConfirmationCa
 
			delete c;
 
		}
 

	
 
		_generating_world = false;
 
		old_generating_world.Restore();
 

	
 
		/* Delete all station signs */
 
		for (BaseStation *st : BaseStation::Iterate()) {