Author: anonymissimus
Date: Mon Feb 28 20:26:22 2011
New Revision: 48681

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48681&view=rev
Log:
Redirect units unstored to greater than map width/height to the recall list. 
(fix for bug #17792)

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=48681&r1=48680&r2=48681&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Mon Feb 28 20:26:22 2011
@@ -2024,7 +2024,7 @@
                preferences::encountered_units().insert(u.type_id());
                map_location loc = cfg_to_loc(
                        (cfg.has_attribute("x") && cfg.has_attribute("y")) ? 
cfg : vconfig(var));
-               if(loc.valid()) {
+               if(resources::game_map->on_board(loc)) {
                        if (cfg["find_vacant"].to_bool()) {
                                const unit* pass_check = NULL;
                                if (cfg["check_passability"].to_bool(true)) 
pass_check = &u;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to