View Issue Details

IDProjectCategoryView StatusLast Update
0000572Spring engineGeneralpublic2007-08-13 18:22
Reporterimbaczek Assigned Toimbaczek  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Summary0000572: [patch] build once
Descriptionby popular demand:
- if a factory is set on repeat and the user alt-leftclicks a unit, it gets inserted right behind the current order and is only built once. behavior of alt-click when repeat is off is unchanged (ie. replace the currently built unit.)
TagsNo tags attached.
Attached Files
build_once.patch (Attachment missing)
build_once_v2.patch (Attachment missing)
Checked infolog.txt for Errors

Activities

trepan

2007-07-28 15:43

reporter   ~0001033

You bumped from 8 bits to 32 bits for all command options
for this feature when the 3 lower bits aren't being used?

Also, the INTERNAL_ORDER bit is available. It is used to
provide the DONT_REPEAT functionality in normal queues
(as well as the time-out feature, but you don't need that).

imbaczek

2007-07-29 13:25

reporter   ~0001034

Last edited: 2007-07-29 13:29

yes. structures get aligned to 4/8 bytes depending on architecture anyway and save file sizes aren't an issue.

I wasn't aware of INTERNAL_ORDER though. I'll check it out. edit: if only it was named more inappropriately... Build-once orders are anything but internal. I can resubmit a patch that uses this flag, but will feel guilty ;)

trepan

2007-07-29 16:03

reporter   ~0001035

I was more concerned with needless bandwidth usage than savefiles.
As mentionned, if you don't like INTERNAL_ORDER, the 3 lower bits
also seem to be available.

imbaczek

2007-07-29 17:25

reporter   ~0001036

ah ok, good point. i'll submit a new one soon.

imbaczek

2007-07-29 22:15

reporter   ~0001037

as promised. reverted Command::options type to uchar and sanitized INTERNAL_ORDER (I hope.)

imbaczek

2007-08-13 18:22

reporter   ~0001097

committed in r4191.

Issue History

Date Modified Username Field Change
2007-07-28 15:07 imbaczek New Issue
2007-07-28 15:07 imbaczek File Added: build_once.patch
2007-07-28 15:43 trepan Note Added: 0001033
2007-07-29 13:25 imbaczek Note Added: 0001034
2007-07-29 13:29 imbaczek Note Edited: 0001034
2007-07-29 16:03 trepan Note Added: 0001035
2007-07-29 17:25 imbaczek Note Added: 0001036
2007-07-29 22:09 imbaczek File Added: build_once_v2.patch
2007-07-29 22:15 imbaczek Note Added: 0001037
2007-08-13 18:22 imbaczek Status new => resolved
2007-08-13 18:22 imbaczek Resolution open => fixed
2007-08-13 18:22 imbaczek Assigned To => imbaczek
2007-08-13 18:22 imbaczek Note Added: 0001097