Author: fendrin
Date: Tue Jan 12 15:38:38 2010
New Revision: 40680
URL: http://svn.gna.org/viewcvs/wesnoth?rev=40680&view=rev
Log:
Hacked around the possible target hex highlighting not showing hexes reachable
by custom teleports.
Modified:
branches/fendrin_pathfind/src/mouse_events.cpp
Modified: branches/fendrin_pathfind/src/mouse_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/fendrin_pathfind/src/mouse_events.cpp?rev=40680&r1=40679&r2=40680&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/mouse_events.cpp (original)
+++ branches/fendrin_pathfind/src/mouse_events.cpp Tue Jan 12 15:38:38 2010
@@ -535,6 +535,8 @@
// and we restore them before the "select" event is
raised
unit_movement_resetter move_reset(u->second,
u->second.side() != side_num_);
bool teleport = u->second.get_ability_bool("teleport");
+ //TODO fix the hack
+ teleport = true;
current_paths_ = paths(map_, units_, hex, teams_,
false, teleport, viewing_team(), path_turns_);
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits