misc_gui.c
changeset 71 1b8e15a10515
parent 70 60216d94f7c1
child 74 d23a80ef6361
--- a/misc_gui.c	Mon Aug 16 22:35:17 2004 +0000
+++ b/misc_gui.c	Tue Aug 17 08:40:09 2004 +0000
@@ -102,6 +102,11 @@
 
 		if (str != (STR_01CE_CARGO_ACCEPTED - 1))
 			DrawStringMultiCenter(140, 76, str, 276);
+			
+		if (lid->td.build_date != 0) {
+			SET_DPARAM16(0,lid->td.build_date);
+			DrawStringCentered(140,71, STR_BUILD_DATE, 0);
+		}
 	}
 }
 
@@ -145,7 +150,10 @@
 	lid.costclear = DoCommandByTile(tile, 0, 0, 0, CMD_LANDSCAPE_CLEAR);
 	p->money64 = old_money;
 	UpdatePlayerMoney32(p);
-
+	
+	// Becuase build_date is not set yet in every TileDesc, we make sure it is empty
+	lid.td.build_date = 0;
+	
 	GetAcceptedCargo(tile, &lid.ac);
 	GetTileDesc(tile, &lid.td);