Author: mordante
Date: Sun May 27 19:01:50 2007
New Revision: 17910
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17910&view=rev
Log:
removed the automatic shroud outside the map, it reintroduces some bugs
but it's the next step to change the background.
Modified:
trunk/src/display.cpp
trunk/src/display.hpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=17910&r1=17909&r2=17910&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Sun May 27 19:01:50 2007
@@ -2358,17 +2358,6 @@
debugHighlights_[loc] += amount;
}
-//NOTE : Hex outside the map are displayed as shrouded.
-//So they are updated and the shroud-transition soften the edge of the map
-bool display::shrouded(const gamemap::location& loc) const
-{
- if (loc.x >= -1 && loc.y >= -1 && loc.x <= map_.x() && loc.y <=
map_.y()) {
- return team_valid() ? teams_[currentTeam_].shrouded(loc.x,
loc.y) : false;
- } else {
- return true;
- }
-}
-
gui::button* display::find_button(const std::string& id)
{
for (size_t i = 0; i < buttons_.size(); ++i) {
Modified: trunk/src/display.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.hpp?rev=17910&r1=17909&r2=17910&view=diff
==============================================================================
--- trunk/src/display.hpp (original)
+++ trunk/src/display.hpp Sun May 27 19:01:50 2007
@@ -346,7 +346,8 @@
static void clear_debug_highlights() { debugHighlights_.clear(); }
//function which returns true if location (x,y) is covered in shroud.
- bool shrouded(const gamemap::location& loc) const;
+ bool shrouded(const gamemap::location& loc) const
+ { return team_valid() ? teams_[currentTeam_].shrouded(loc.x,
loc.y) : false; }
bool fogged(const gamemap::location& loc) const
{ return team_valid() ? teams_[currentTeam_].fogged(loc.x,
loc.y) : false; }
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits