changeset 8564:2785566a8c4e draft

(svn r12142) -Fix [FS#1766]: Callback 0x3D always gets a cargobit in var 0x18, independent of grf version.
author frosch <frosch@openttd.org>
date Fri, 15 Feb 2008 10:52:10 +0000
parents 992fa65afba1
children 1c6548020275
files src/newgrf_cargo.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_cargo.cpp
+++ b/src/newgrf_cargo.cpp
@@ -115,9 +115,7 @@
 
 uint8 GetReverseCargoTranslation(CargoID cargo, const GRFFile *grffile)
 {
-	/* Pre-version 7 uses the 'climate dependent' ID, i.e. cargo is the cargo ID */
-	if (grffile->grf_version < 7) return cargo;
-
+	/* Note: All grf versions use CargoBit here. Pre-version 7 do NOT use the 'climate dependent' ID. */
 	const CargoSpec *cs = GetCargo(cargo);
 
 	/* If the GRF contains a translation table (and the cargo is in the table)