Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
[Freeciv-Dev] common_map_c bug 1
Home

[Freeciv-Dev] common_map_c bug 1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] common_map_c bug 1
From: Peter Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Nov 1998 18:20:38 +0100

Ow - I realized there may occur a freaky bug when I looked
at my last email. The 0BC 1AD hack means I need a game.year >0.
Sorry :-)
--
Peter Schaefer           mailto:schaefer@xxxxxxxxxxxxxxxxxxxxxxxxxxx     
X-Url: http://wwwhoppe.math.uni-augsburg.de/~schaefer/
--- common/game.cold    Mon Nov  9 20:55:57 1998
+++ common/game.c       Thu Nov 12 17:10:40 1998
@@ -398,16 +398,28 @@
   if (game.year == 1) /* hacked it to get rid of year 0 */
     game.year = 0;
 
-  if (game.year < 1000)
-    game.year += 20;
-  else if (game.year < 1500)
-    game.year += 10;
-  else if (game.year < 1700)
-    game.year += 5;
-  else if (game.year < 1800)
+    /* !McFred: 
+       - want game.year += 1 for spaceship.
+    */
+
+  if(game.year >= 1900 
+     || 
+     (( game.global_advances[A_ROBOTICS] || 
game.global_advances[A_SUPERCONDUCTOR] )
+     && game.global_advances[A_PLASTICS] && game.year >0 )
+     )
+    game.year += 1;
+  else if(game.year >= 1750 || game.global_advances[A_PLASTICS] )
     game.year += 2;
+  else if(game.year >= 1500 || game.global_advances[A_SPACEFLIGHT] )
+    game.year += 5;
+  else if(game.year >= 1000 )
+    game.year += 10;
+  else if( game.year >= 0 )
+    game.year += 20;
+  else if(game.year >= -1250)
+    game.year += 25;
   else
-    game.year++;
+    game.year += 50; 
 
   if (game.year == 0) 
     game.year = 1;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] common_map_c bug 1, Peter Schaefer <=