Opened 3 years ago

Last modified 3 years ago

#5896 new defect

Units stuck while spamclicking

Reported by: bb Owned by:
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch: phab:D3247

Description (last modified by bb)

Spamclicking a unit to go to the other side of an obstruction, doesn't move the unit. The problem here is that we don't know the actual path yet when we start to move. For the first turn we just try to move in the correct direcion, which can be wrong. Hence we try turning there too, which wastes some time, and thus we move slower/not at all.

Unsure what we need to do. Disallow spamclicking? Don't update the moverequest when its the same, i.e., don't compute a new path?

Reported by borg at phab:rP24415

Change History (2)

comment:1 by bb, 3 years ago

Description: modified (diff)

comment:2 by bb, 3 years ago

Patch: phab:D3247

In fact there are two issues: on a new command we call stopMoving and thus potentially try to face in the wrong direction. Fixed by https://code.wildfiregames.com/D3247. Another issue is that we rotate towards short pathfinder obstruction when the path asks us to do so, and thus waste time like that.

Note: See TracTickets for help on using tickets.