Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11349) 'u' on a transport should unload all units
Home

[Freeciv-Dev] Re: (PR#11349) 'u' on a transport should unload all units

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11349) 'u' on a transport should unload all units inside
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Dec 2004 22:01:01 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11349 >

Benoit Hudson wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11349 >
> 
> On Sun, Dec 05, 2004 at 09:52:02PM -0800, Jason Short wrote:
> 
>>Well, they don't have to be.  With the current code there's no way
>>they'd both be active at the same time.  It's separate because of
>>historical reasons (just the way it was made) and because recursive
>>transportation hasn't been entirely ruled out in the future.
> 
> 
> I wonder: how hard would it be to make 'u' first try to unload, and if
> it can't, then try to unload all?  Shift-u could remain unload all. 
> That would deal with the recursive transport problem too.

Just change the request_unit_unload() call in menu.c to:

   if (transporter_capacity(punit) > 0) {
     request_unit_unload_all(punit);
   } else {
     request_unit_unload(punit);
   }

-jason





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