Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2002:
[Freeciv-Dev] Blame It on Greg (PR#1363)
Home

[Freeciv-Dev] Blame It on Greg (PR#1363)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Blame It on Greg (PR#1363)
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Mon, 8 Apr 2002 12:03:49 -0700 (PDT)

I'm sending in the igter patch soon. I'm calling it - Blame_it_on_GB.diff.
My alibi is prepared. 


--- Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx> wrote:
> On Thu, 4 Apr 2002, Raahul Kumar wrote:
> 
> > > > > ai/advmilitary.c, line 462 -- if (unit_type_flag(i, F_IGTER) && !def)
> cur
> > > 
> > > > > *= 3;
> > > > 
> > > > This one I'm still unsure of. This cur doesn't seem to be just
> move_rate.
> > 
> > I would like your opinion on this line. 
> 
> sorry about the delay ;)
> 
> of course you should change it, see above:
> 
> 453   if (def) cur *= 3;
> 454   else cur *= get_unit_type(i)->move_rate;
> 
> So it gets multiplied by move_rate and IGTER is at least 3 times faster => 
> 3 times better.
> 
> > > > > ai/advmilitary.c, line 795 -- if (unit_flag(pdef, F_IGTER)) dist *=
> 3;
> > > > 
> > > > Dist is not always move_rate either. I've yet to untangle exactly what
> dist
> > > is.
> > 
> > And this.
> 
> Same here:
> 
> 794       if (dist > m) {
> 795         dist *= unit_type(pdef)->move_rate;
> 796         if (unit_flag(pdef, F_IGTER)) dist *= 3;
> 797       }
> 
> Be bold, my man!

This is simplistic. Igter units do not get to attack 3 times, so they are *NOT*
three times beter. Whoever wrote this code would make a New Zealander look
smart.

> > > ai/aiunit.c, line 1219 -- if (unit_flag(punit, F_IGTER)) d_val /= 1.5;
> > 
> > A comment here too.
> 
> Here I haven't got a clue.  I would expect /= 3 here.  But this you 
> shouldn't worry too much about, this bodyguard code is broken and I expect 
> Per will fix it soon ;)

Does Per know he will fix it soon?
 
Aloha,
RK.

Many highly intelligent people are poor thinkers. Many people of average
intelligence are skilled thinkers. The power of a car is separate from the way
the car is driven. -Edward De Bono



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Blame It on Greg (PR#1363), Raahul Kumar <=