[Freeciv-Dev] Re: [RFC] square_dxy_iterate
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Sat, Feb 23, 2002 at 06:34:49PM +0000, Gregory Berkolaiko wrote:
> >
> > > > flag isn't the most explanatory of names.
> > > > how about willing_to_attack
> > > > or
> > > > will_fight_if_needed
> > >
> > > Choose one.
> >
> > The choice is yours
>
> I don't want ;)
second is better IMO
> > leave a comment then.
>
> And what about the others?
ok, dont' :)
>
> ./ai/aicity.c:1026: if(acity && acity!=pcity &&
> acity->owner==pcity->owner) {
> ./ai/aiunit.c:516: if (pcity->owner != punit->owner) return FALSE;
> ./ai/aiunit.c:612: if (pcity && pcity->owner != punit->owner)
> ./ai/aiunit.c:647: if (aunit == punit || aunit->owner != punit->owner)
> continue;
> ./ai/aiunit.c:665: if (aunit == punit || aunit->owner != punit->owner)
> ./ai/aiunit.c:690: if (aunit == punit || aunit->owner != punit->owner)
> ./ai/aiunit.c:714: if (aunit == punit || aunit->owner != punit->owner)
> ./ai/aiunit.c:847: if (aunit && aunit->owner == punit->owner) { x =
> aunit->x; y = aunit->y; }
> ./ai/aiunit.c:848: else if (acity && acity->owner == punit->owner) { x =
> acity->x; y = acity->y; }
> ./ai/aiunit.c:1216: (acity && acity->owner == punit->owner &&
> acity->ai.urgency &&
> ./ai/aiunit.c:1578: pcity->owner != punit->owner && pcity->ai.invasion
> == 2 &&
> ./client/packhand.c:341: if (pcity && (pcity->owner != packet->owner)) {
> ./client/packhand.c:574: if (pcity && (pcity->owner != packet->owner)) {
> ./common/city.c:838: || (pc1->owner == pc2->owner
> ./common/city.c:875: if (pc1->owner==pc2->owner)
> ./common/city.c:1929: && punit->owner == pcity->owner)
> ./common/combat.c:231: if (pcity && (city_owner(pcity) != owner)
> ./common/game.c:312: if (owner != no_owner) {
> ./common/unit.c:109: if(pcity->owner!=pdiplomat->owner &&
> ./common/unit.c:169: if(city1->owner != pcity->owner)
> ./common/unit.c:189: && punit->owner==pcity->owner
> ./common/unit.c:452: if (pcity->owner != punit->owner)
> ./common/unit.c:471: return pcity && pcity->owner==punit->owner;
> ./server/unithand.c:363: if (new_pcity && new_pcity->owner ==
> punit->owner) {
> ./server/unithand.c:883: && pcity->owner != punit->owner
> ./server/unittools.c:250: if (punit2->owner == punit->owner) {
> ./server/unittools.c:1363: if (pcity && pcity->owner == punit->owner)
> ./server/unittools.c:1415: if (pcity->owner == punit->owner){
> ./server/unittools.c:1525: if (is_ground_unit(wunit) && wunit->owner
> == vunit->owner) {
> ./server/unittools.c:2806: if (tocity->owner == punit->owner) {
> ./server/unittools.c:2825: if (fromcity != homecity && fromcity->owner
> == punit->owner) {
>
> Also add a comment? No this is IMHO unnecessary since the person who
> implements diplomacy has to audit all the code anyway.
>
> Raimar
>
> --
> email: rf13@xxxxxxxxxxxxxxxxx
> "Your mail could not be delivered to the following Address:
> VTCMC.VTLPR@xxxxxxxxxxxxx ** Unassigned error message **"
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
- [Freeciv-Dev] [RFC] square_dxy_iterate, Raimar Falke, 2002/02/22
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Jason Short, 2002/02/22
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/22
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Gregory Berkolaiko, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Gregory Berkolaiko, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Gregory Berkolaiko, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate,
Gregory Berkolaiko <=
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Petr Baudis, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Petr Baudis, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Jason Short, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Jason Short, 2002/02/23
- [Freeciv-Dev] Re: [RFC] square_dxy_iterate, Raimar Falke, 2002/02/23
|
|