*Ships take 2 days to upgrade cannons instead of 1
*repairing damage to a ship resets in_shipyard (so repairing 0 damage allows
the ship to leave immediately)

I've attached a fix,

Regards,
Ruhi
Index: ship.cc
===================================================================
RCS file: /cvs/freebooters/freebooters/ship.cc,v
retrieving revision 1.7
diff -u -r1.7 ship.cc
--- ship.cc	19 Sep 2004 12:20:22 -0000	1.7
+++ ship.cc	20 Sep 2004 11:57:42 -0000
@@ -649,8 +649,6 @@
    if (amount > 0)
       delay = max_delay-((max_delay-delay_capacity)*(cannons/cannon_capacity));
 
-   in_shipyard++;
-
    return added*price;
 }
 
@@ -678,7 +676,7 @@
 
 void Ship::stay_in_shipyard(int amount)
 {
-   in_shipyard++;
+   in_shipyard+=amount;
 }
 
 // FIXME, remove me after having fixed justbattle
@@ -697,7 +695,8 @@
 {
    int fix = gameplay_parameters.get_int("shipyard_fix_per_day");
 
-   in_shipyard = (amount / fix);
+   stay_in_shipyard(amount / fix);
+   
 }
 
 // returns the price the player has to pay

Reply via email to