From f6e1091adcf8415061c5586ba332278869837189 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sun, 2 Nov 2014 00:37:54 +0100 Subject: [PATCH] Code quality: Rename variable --- src/supertux/sector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index 4c666d96e..3e0c44ead 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -660,12 +660,12 @@ int Sector::calculate_foremost_layer() { int layer = 0; - std::vector secret_area_layers; + std::vector secret_area_tilemaps; for(auto i = gameobjects.begin(); i != gameobjects.end(); ++i) { SecretAreaTrigger* trigger = dynamic_cast(i->get()); if (!trigger) continue; - secret_area_layers.push_back(trigger->get_fade_tilemap_name()); + secret_area_tilemaps.push_back(trigger->get_fade_tilemap_name()); } for(auto i = gameobjects.begin(); i != gameobjects.end(); ++i) @@ -674,8 +674,8 @@ Sector::calculate_foremost_layer() if (!tm) continue; if(tm->get_layer() > foremost_layer) { - if (std::find(secret_area_layers.begin(), secret_area_layers.end(), tm->get_name()) - != secret_area_layers.end() || tm->is_solid()) + if (std::find(secret_area_tilemaps.begin(), secret_area_tilemaps.end(), tm->get_name()) + != secret_area_tilemaps.end() || tm->is_solid()) { layer = tm->get_layer(); } -- 2.11.0