Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: advdomestic.c cleanup II. (PR#1157)
Home

[Freeciv-Dev] Re: advdomestic.c cleanup II. (PR#1157)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Cc: Chris Richards <chrisr@xxxxxxxxxxxxxxxx>, Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: advdomestic.c cleanup II. (PR#1157)
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Sun, 30 Dec 2001 02:49:14 +0100

Dear diary, on Sun, Dec 30, 2001 at 02:46:01AM CET, I got a letter, where
Raahul Kumar <raahul_da_man@xxxxxxxxx> told me, that...
> It's those magic numbers less than 0, 199, and 200 that need explaining. I
> certainly don't know by reading the code what the hell 199 does. A
> descriptive name would help.
199 is just 200 - 1, exactly as I said ;-) - when you want it in a different
way, maximal integer value under 200, which is magic bound I described about
five times already on the list and not going to do it once more ;-). It's used
for adjusting the desire under non-critical bound, so we won't <see comment> -
and this is then highest possible desire we can assign to it.

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv, (e)links
.
Firewall in a way is like the doorkeeper of a local pub. If you don't have your
I.D. on you, or if for some reason you do not qualify to enter, the doorkeeper
will not permit you to enter. In some extreme cases these doorkeepers will not
let you out, or at least give you a hard time before they finally let you out.
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/


[Prev in Thread] Current Thread [Next in Thread]