Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1930 closed defect (fixed)

[PATCH] delayed build bug

Reported by: mimo Owned by: leper
Priority: Should Have Milestone: Alpha 14
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

The bug reported in http://www.wildfiregames.com/forum/index.php?showtopic=17319 is a side-effect of the patch http://trac.wildfiregames.com/ticket/1903 . Here is a possible fix.

Attachments (2)

delayedbuild.diff (638 bytes ) - added by mimo 11 years ago.
delayed_fix.patch (1.2 KB ) - added by leper 11 years ago.
alternate solution

Download all attachments as: .zip

Change History (7)

by mimo, 11 years ago

Attachment: delayedbuild.diff added

by leper, 11 years ago

Attachment: delayed_fix.patch added

alternate solution

comment:1 by leper, 11 years ago

Component: Core engineUI & Simulation

I'm not sure which of the two solutions is the better one. Your version is short, but it doesn't handle the case where the repair/build order is the last one well IMO. The unit will just stop where it is currently (when the order is executed) and stop there.

While mine will walk to the building (even if it has been constructed/fully repaired) without caring if there are other orders left.

(I have a slight preference for my solution, but I'll ask someone to give us some input on which one to use.)

comment:2 by mimo, 11 years ago

My patch was to fix what was broken by ticket 1903 : when a foundation is completed and thus renamed, we should not renamed it in the builder orders. This bring us back to the state before 1903. Then if people prefer to change this behaviour and walk to the already built building, that's also fine with me.

comment:3 by Josh, 11 years ago

I think leper's patch would be the way to go here. Most other RTS games I'm familiar with handle this situation the same way. As far as I can tell, his patch is ready to be committed.

comment:4 by leper, 11 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 13415:

Check if a building is already at full health when trying to repair it. Fixes #1930.

comment:5 by leper, 11 years ago

Keywords: review removed

(see IRC discussion for why we decided upon my patch)

Note: See TracTickets for help on using tickets.