Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] (PR#14769) helicopter looses fuel when transported on a ca
Home

[Freeciv-Dev] (PR#14769) helicopter looses fuel when transported on a ca

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#14769) helicopter looses fuel when transported on a carrier
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Dec 2005 17:22:34 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14769 >

> [chrisk - Sun Dec 04 13:38:22 2005]:
> 
> 
> SVN HEAD 04 DEC 2005 GTK2
> 
> $SUBJECT

Looking at the code it seems this should be the case in 2.0 also...

-jason

Index: server/unittools.c
===================================================================
--- server/unittools.c  (revision 11336)
+++ server/unittools.c  (working copy)
@@ -464,7 +464,8 @@
   /* Bonus recovery HP (traditionally from the United Nations) */
   punit->hp += get_unit_bonus(punit, EFT_UNIT_RECOVER);
 
-  if (!pcity && !tile_has_special(punit->tile, S_AIRBASE)) {
+  if (!pcity && !tile_has_special(punit->tile, S_AIRBASE)
+      && punit->transported_by == -1) {
     punit->hp -= unit_type(punit)->hp * class->hp_loss_pct / 100;
   }
 

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