They can attack me but I can't attack them
Bug #995011 reported by
Peter Waller
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Nicolai Hähnle |
Bug Description
The map is last bastion. The same problem was seen in another game back in build 16.
Red cannot attack blue, but blue can attack red (as the AI will shortly after the map starts). When clicking on a blue military building, 0/0 soliders is shown. This isn't an issue of the shroud.
Related branches
lp:~widelands-dev/widelands/bug995011
- SirVer: Approve
-
Diff: 101 lines (+34/-15)3 files modifiedsrc/logic/findimmovable.cc (+13/-1)
src/logic/findimmovable.h (+11/-4)
src/logic/player.cc (+10/-10)
Changed in widelands: | |
assignee: | nobody → Nicolai Hähnle (nha) |
To post a comment you must log in.
I do not think that this is related to bug 566970 because in that game, the way was blocked. In this game, red only seems to be too far away.
IIRC, if the distance between two buildings is less than 25, the soldiers can attack each other. But I do not know from what point (door or flag) that distance is calculated.
Maybe the distance is calculated from the attacker's door to the enemy's flag, which means that the distance blue (right side) to red (left side) is shorter than red to blue, because the flags are on the right side. I do not know if this is the case, so a programmer should check that.