public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Hans Ronne <hronne@comhem.se>
To: Eric McDonald <mcdonald@phy.cmich.edu>
Cc: xconq7@sources.redhat.com
Subject: Re: bug in infantry building a base which is already started
Date: Tue, 25 May 2004 22:02:00 -0000	[thread overview]
Message-ID: <l03130301bcd97127ba91@[212.181.162.155]> (raw)
In-Reply-To: <l03130300bcd9681898ea@[212.181.162.155]>

>>But the notification issue and the apparent bug in the unit view macro
>>aside, I believe I have fixed the bug that you reported. I just swapped
>>the 'for_all_view_stack_with_occs' with 'for_all_view_stack'. The only
>>reason I used the former to begin with was to handle the case where a
>>builder might want to work on another unit's occs.
>
>Actually, what macro you use doesn't make any difference, i.e. the second
>infantry still refuses to join the build, and instead goes into passive
>waiting mode.
>
>However, if you override the view code by turning on see-all things work as
>expected, with either macro. So it seems that the core unit view code is
>the real culprit. The unit view code is unusual in that it uses a hash
>table and "nextinhash" rather than the usual "nexthere".  The effect of
>see-all is to overide the use of "nextinhash".
>
>I always had a bad feeling about the view code and its hash table, since I
>am not convinced that it works as expected in all circumstances. Maybe we
>should take a closer look at it.

A followup: the easiest way to fix the build code is of course to iterate
over units instead of unit views. Since that code is checking that the
builder and the target is on the same side, the latter will always be fully
visible to the builder, so there is really no point in using unit views
here.

This doesn't change the fact that the core unit view code needs to be
fixed, however.

Hans


  reply	other threads:[~2004-05-25 22:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24  3:45 Jim Kingdon
2004-05-24 20:00 ` Eric McDonald
2004-05-25  3:33 ` Eric McDonald
2004-05-25 21:53   ` Hans Ronne
2004-05-25 22:02     ` Hans Ronne [this message]
2004-05-25 22:27       ` Eric McDonald
2004-05-25 23:14         ` Hans Ronne
2004-05-25 23:28           ` Eric McDonald
2004-05-26  0:00             ` Hans Ronne
2004-05-26 21:00               ` Overwatch and Counterbattery? Elijah Meeks
2004-05-26 21:35                 ` Hans Ronne
2004-05-27  2:17                   ` Eric McDonald
2004-05-25 22:14     ` bug in infantry building a base which is already started Eric McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l03130301bcd97127ba91@[212.181.162.155]' \
    --to=hronne@comhem.se \
    --cc=mcdonald@phy.cmich.edu \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).