Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] Re: [FreeCiv-Cvs] jdorje: Scale the HP and MP of a unit wh
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] jdorje: Scale the HP and MP of a unit wh

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] jdorje: Scale the HP and MP of a unit when upgrading...
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jul 2003 19:04:44 +0200

On Mon, Jul 21, 2003 at 06:25:07PM +0200, Christian Knoke wrote:
> [Please CC: me if you answer]
> 
> On Wed, Jul 16, 2003 at 09:51:02PM -0700, freeciv@xxxxxxxxxxxxxxxxxxx wrote:
> > This is an automated notification of a change to freeciv cvs, 
> > on Wed Jul 16 21:49:25 PDT 2003 = Thu Jul 17 04:49:25 2003 (GMT)
> > by Jason Dorje Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
> > 
> > ---- Files affected:
> > 
> > freeciv/server unittools.c
> > 
> > ---- Log message:
> >       Tag: HEAD
> > 
> > Scale the HP and MP of a unit when upgrading.  This prevents some odd
> > behavior when upgrading from units with only 1 MP.
> > 
> > Reported by Christian Knoke <chrisk@xxxxxxxx> as PR#3990.  Patch by me.
> 
> It is now possible that a unit has more than its max MP. Eg a galleon
> updated to a transport gives 7 1/3 MP with Magellans's.

A possible solution could be like the attached patch ... problem that
"to_unit" isn't a "struct unit" ...

Thomas
-- 
Thomas Strub  ***  eMail ue80@xxxxxxxxxxxxxxxxxxxxx
jb: people are stupid, they don't want to learn.


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