Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#4787 closed defect (fixed)

Disconnected territory considered rooted after capturing

Reported by: elexis Owned by: temple
Priority: Should Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D1225

Description

In this replay, borg- captured a barracks from Liberty at minute 13:30. The territory didn't blink and borg- was able to build a tower in that disconnected territory.

refs #3526

Attachments (1)

commands.txt (409.4 KB ) - added by elexis 7 years ago.
Thanks mapkoc for providing the replay.

Download all attachments as: .zip

Change History (8)

by elexis, 7 years ago

Attachment: commands.txt added

Thanks mapkoc for providing the replay.

comment:1 by temple, 7 years ago

It was the fields that did it.

It's the same problem I described in the fourth point of #4749. There isn't a check for building owner == tile owner (in IsConnected() of TerritoryDecay.js), so while borg's barracks correctly says this territory isn't adjacent to a mutual ally so it should blink, each of Liberty's two fields say this territory is adjacent to a mutual ally so it shouldn't blink. Since the fields were built after the barracks, their "don't blink" order wins.

comment:2 by elexis, 7 years ago

(refs Phab:D926)

comment:3 by elexis, 7 years ago

Milestone: BacklogAlpha 23

Someone should check wheather it was fixed by r20268.

comment:4 by elexis, 7 years ago

Milestone: Alpha 23Backlog

Guess it isn't fixed by that commit since it wasn't a missing update but a unintentional computation result.

comment:5 by elexis, 6 years ago

Milestone: BacklogWork In Progress
Patch: Phab:D1225

comment:6 by temple, 6 years ago

Owner: set to temple
Resolution: fixed
Status: newclosed

In 20949:

Add a tile owner check in territory decay

Differential Revision: https://code.wildfiregames.com/D1225
Reviewed By: mimo
Comment By: elexis
Fixes: #4787
Refs: #4681, #4749

comment:7 by temple, 6 years ago

Milestone: Work In ProgressAlpha 23
Note: See TracTickets for help on using tickets.