From a22e4a37bae1e0206fcc543b76154904fa5225af Mon Sep 17 00:00:00 2001 From: Wedge009 Date: Wed, 16 Oct 2019 14:10:19 +1100 Subject: [PATCH] Updating comments. [ci skip] --- data/game_config.cfg | 2 ++ src/display.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/game_config.cfg b/data/game_config.cfg index 11c9804dd175..e192ccea58e2 100644 --- a/data/game_config.cfg +++ b/data/game_config.cfg @@ -32,6 +32,8 @@ hp_bar_scaling=0.6 xp_bar_scaling=0.5 + + # zoom factors must be a sorted list of ascending multipliers zoom_levels = 0.25, 0.33333333333333333, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0, 3.0, 4.0 #temporary disable hex brightening diff --git a/src/display.cpp b/src/display.cpp index 4f0352f7d024..3ea23b9fcd7b 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -91,7 +91,6 @@ unsigned int display::last_zoom_ = SmallZoom; // Returns index of zoom_levels which is closest match to input zoom_level // Assumption: zoom_levels is a sorted vector of ascending tile sizes -// (game_config is set-up this way as of October 2019 but there is no documentation stating it has to be so) int get_zoom_levels_index(unsigned int zoom_level) { zoom_level = utils::clamp(zoom_level, MinZoom, MaxZoom); // ensure zoom_level is within zoom_levels bounds