train_cmd.c
changeset 2523 cab22b46dca9
parent 2522 8ca253e76703
child 2529 97c0b71ee7dd
--- a/train_cmd.c	Sun Oct 16 14:07:11 2005 +0000
+++ b/train_cmd.c	Sun Oct 16 14:12:21 2005 +0000
@@ -498,6 +498,24 @@
 	}
 }
 
+static const byte _railveh_unk1[] = {
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 1, 1, 0, 0, 0,
+	0, 0, 0, 0, 1, 0, 1, 0,
+	0, 1, 1, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 1,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0, 0, 0, 0, 0,
+	0, 0, 0, 0,
+};
+
 static const byte _railveh_score[] = {
 	1, 4, 7, 19, 20, 30, 31, 19,
 	20, 21, 22, 10, 11, 30, 31, 32,
@@ -572,6 +590,8 @@
 		if (!IsTileOwner(tile, _current_player)) return CMD_ERROR;
 	}
 
+	_cmd_build_rail_veh_var1 = 0;
+
 	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
 
 	rvi = RailVehInfo(p1);
@@ -656,6 +676,7 @@
 			InvalidateWindow(WC_COMPANY, v->owner);
 		}
 	}
+	_cmd_build_rail_veh_var1 = _railveh_unk1[p1];
 	_cmd_build_rail_veh_score = _railveh_score[p1];
 
 	InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train); // updates the replace Train window