[Commits] [wesnoth/wesnoth] f13123: Tunnels: fix issues when exit hex is occupied by i...

GitHub noreply at github.com
Tue Sep 20 01:46:56 UTC 2016


  Branch: refs/heads/fix-tunnel-issues
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f13123648eea920ac18f3a955a58ae7c0e5d2e5a
      https://github.com/wesnoth/wesnoth/commit/f13123648eea920ac18f3a955a58ae7c0e5d2e5a
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2016-09-19 (Mon, 19 Sep 2016)

  Changed paths:
    M src/actions/move.cpp
    M src/pathfind/teleport.cpp

  Log Message:
  -----------
  Tunnels: fix issues when exit hex is occupied by invisible unit

This can happen when enemy units are hidden under fog or have the hides
ability. Either way, enemy units always blocks the tunnel.

Invisible allied units may or may not block the tunnel, depending on
the setting of pass_allied_units in the [tunnel] tag. It is therefore
necessary to get and check the full teleport map during a unit’s move
through a teleport, but with see_all=true (while the path finding uses
see_all=false).

This commit fixes the behavior and reinstates the ‘failed teleport’
message.





More information about the Commits mailing list