Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6735) Server crashed upgrading a frigate
Home

[Freeciv-Dev] Re: (PR#6735) Server crashed upgrading a frigate

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6735) Server crashed upgrading a frigate
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Wed, 5 Nov 2003 04:57:17 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, Nov 04, 2003 at 01:37:42AM -0800, Per I. Mathisen wrote:
> 
> On Sun, 2 Nov 2003, Guest wrote:
> > `get_transporter_occupancy(punit) <= get_transporter_capacity(punit)'
> > failed.
> ...
> > I think it is because I was upgrading a frigate 'populated' and
> > sleeping in a city newly acquired from the ennemy.
> > Was upgrading to destoyer.
> 
> Yes, this is a bug. A frigate has space for passengers, and your frigate
> has one or more passengers, but the destroyer does not have any space for
> passengers; but the transported_by field is not reset when you upgrade,
> nor is it trivial to do so, since we might be upgrading in the middle of
> the ocean due to Leonardo's.

> I think the simplest solution to this problem is simply to ban upgrades of
> transporters with passengers where the result is a unit with less
> transport capacity than the number of passengers transported.

I agree. What changes to the ruleset are required?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  This message has been ROT-13 encrypted twice for extra security.



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