minfogremoved.patch

secondking, 07/08/2010 03:39 am

Download (1.6 kB)

source/configurator/configurator.cpp (working copy)
2017 2017
	btn->SetToolTip(_("Use this to remove the whole cache and force the generation from ground up."));
2018 2018
	y+=30;
2019 2019

  
2020
	dText = new wxStaticText(advancedPanel, -1, _("minimum visibility range in percent"), wxPoint(10,y));
2020
	dText = new wxStaticText(advancedPanel, -1, _("minimum visibility range in percent"), wxPoint(1,y));
2021 2021
	y+=20;
2022 2022
	//this makes a visual bug in macosx
2023
	sightrange=new wxSlider(advancedPanel, -1, 30, 20, 130, wxPoint(30, y), wxSize(200, 40), wxSL_LABELS|wxSL_AUTOTICKS);
2023
	sightrange=new wxSlider(advancedPanel, -1, 30, 1, 130, wxPoint(30, y), wxSize(200, 40), wxSL_LABELS|wxSL_AUTOTICKS);
2024 2024
	sightrange->SetToolTip(_("This sets the minimum sight range Setting. It determines how far the terrain should be drawn. \n100% means you can view the whole terrain. \nWith 130% you can view everything across the diagonal Axis."));
2025 2025
	sightrange->SetTickFreq(10, 0);
2026 2026
	sightrange->SetPageSize(10);
source/main/RoRFrameListener.cpp (working copy)
4850 4850
		terrainzsize=fval;
4851 4851
		//we take farclip=1/3rd the terrain size (default)
4852 4852
		farclip = farclip * farclipPercent / 100.0f;
4853
		if (farclip<1000.0)
4854
			//cap for small terrains
4855
			farclip=1000.0;
4856 4853

  
4857 4854
		disableTetrrain = (config.getSetting("disable") != "");
4858 4855
	}