Author: silene
Date: Thu May 21 16:57:36 2009
New Revision: 35785
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35785&view=rev
Log:
Removed redundant parameter from unit::set_standing.
Modified:
trunk/src/ai/contexts.cpp
trunk/src/game_events.cpp
trunk/src/menu_events.cpp
trunk/src/unit.hpp
trunk/src/unit_display.cpp
Modified: trunk/src/ai/contexts.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/contexts.cpp?rev=35785&r1=35784&r2=35785&view=diff
==============================================================================
--- trunk/src/ai/contexts.cpp (original)
+++ trunk/src/ai/contexts.cpp Thu May 21 16:57:36 2009
@@ -380,7 +380,7 @@
p->first = to;
get_info().units.insert(p);
- p->second.set_standing(p->first);
+ p->second.set_standing();
if(get_info().map.is_village(to)) {
// If a new village is captured, disallow any future movement.
if (!current_team().owns_village(to))
Modified: trunk/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=35785&r1=35784&r2=35785&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Thu May 21 16:57:36 2009
@@ -645,7 +645,7 @@
teleport_path.push_back(vacant_dst);
unit_display::move_unit(teleport_path, u->second, *rsrc.teams);
} else {
- u->second.set_standing(vacant_dst);
+ u->second.set_standing();
rsrc.screen->invalidate(src_loc);
rsrc.screen->invalidate(dst);
rsrc.screen->draw();
Modified: trunk/src/menu_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=35785&r1=35784&r2=35785&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Thu May 21 16:57:36 2009
@@ -1061,7 +1061,7 @@
up->first = route.back();
units_.insert(up);
unit::clear_status_caches();
- up->second.set_standing(up->first);
+ up->second.set_standing();
gui_->invalidate(route.back());
gui_->draw();
}
@@ -1191,7 +1191,7 @@
up->first = route.back();
units_.insert(up);
unit::clear_status_caches();
- up->second.set_standing(up->first);
+ up->second.set_standing();
if(map_.is_village(route.back())) {
get_village(route.back(),*gui_,teams_,up->second.side()-1,units_);
Modified: trunk/src/unit.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=35785&r1=35784&r2=35785&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Thu May 21 16:57:36 2009
@@ -206,6 +206,9 @@
void set_standing(const map_location& loc, bool with_bars = true);
+ void set_standing(bool with_bars = true)
+ { set_standing(loc_, with_bars); }
+
void set_idling(const game_display& disp,const map_location& loc);
void set_selecting(const game_display& disp,const map_location& loc);
unit_animation* get_animation() { return anim_;};
Modified: trunk/src/unit_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_display.cpp?rev=35785&r1=35784&r2=35785&view=diff
==============================================================================
--- trunk/src/unit_display.cpp (original)
+++ trunk/src/unit_display.cpp Thu May 21 16:57:36 2009
@@ -333,8 +333,7 @@
animator.set_all_standing();
disp->remove_temporary_unit();
def->second.set_hidden(was_hidden);
- def->second.set_standing(def->first);
-
+ def->second.set_standing();
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits