From 96190c042c0c736bfdbcf61a97c2f0414b18c84d Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 27 Sep 2015 03:16:50 -0400 Subject: [PATCH] Remove a now-useless function --- src/scenedit/scen.actions.cpp | 21 ++------------------- src/scenedit/scen.actions.hpp | 1 - 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index 07c6d203..9d3df31b 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -784,11 +784,11 @@ static bool handle_terrain_action(location the_point, bool ctrl_hit) { break; case MODE_LARGE_SPRAYCAN: mouse_button_held = true; - shy_change_circle_terrain(spot_hit,4,current_terrain_type,1); + change_circle_terrain(spot_hit,4,current_terrain_type,1); break; case MODE_SMALL_SPRAYCAN: mouse_button_held = true; - shy_change_circle_terrain(spot_hit,2,current_terrain_type,1); + change_circle_terrain(spot_hit,2,current_terrain_type,1); break; case MODE_ERASER: // erase change_circle_terrain(spot_hit,2,current_ground,20); @@ -1838,23 +1838,6 @@ void handle_scroll(sf::Event& event) { } } -void shy_change_circle_terrain(location center,short radius,ter_num_t terrain_type,short probability) { - // prob is 0 - 20, 0 no, 20 always - location l; - short i,j; - ter_num_t ter; - - for(i = 0; i < ((editing_town) ? town->max_dim() : 48); i++) - for(j = 0; j < ((editing_town) ? town->max_dim() : 48); j++) { - l.x = i; - l.y = j; - ter = editing_town ? town->terrain(i,j) : current_terrain->terrain[i][j]; - if((dist(center,l) <= radius) && (get_ran(1,1,20) <= probability) - && (ter < 5)) - set_terrain(l,terrain_type); - } -} - void change_circle_terrain(location center,short radius,ter_num_t terrain_type,short probability) { // prob is 0 - 20, 0 no, 20 always location l; diff --git a/src/scenedit/scen.actions.hpp b/src/scenedit/scen.actions.hpp index fe03a53c..008378b2 100644 --- a/src/scenedit/scen.actions.hpp +++ b/src/scenedit/scen.actions.hpp @@ -14,7 +14,6 @@ void get_town_info(); void get_sign_resource(); void set_info_strings(); cTown::cItem edit_item(cTown::cItem item); -void shy_change_circle_terrain(location center,short radius,ter_num_t terrain_type,short probability); void change_circle_terrain(location center,short radius,ter_num_t terrain_type,short probability); void change_rect_terrain(rectangle r,ter_num_t terrain_type,short probability,bool hollow); void flood_fill_terrain(location start, ter_num_t terrain_type);