(svn r4460) - Newstations: remove unused class_id / stat_id variables from the
authorpeter1138
Mon, 17 Apr 2006 18:47:50 +0000
changeset 3574 bf5f6c1af32c
parent 3573 f9d310cdfbfd
child 3575 867df1ec208a
(svn r4460) - Newstations: remove unused class_id / stat_id variables from the
Station struct.
station.h
station_cmd.c
waypoint.c
--- a/station.h	Mon Apr 17 18:35:44 2006 +0000
+++ b/station.h	Mon Apr 17 18:47:50 2006 +0000
@@ -66,8 +66,6 @@
 	// trainstation width/height
 	byte trainst_w, trainst_h;
 
-	byte class_id; // custom graphics station class
-	byte stat_id; // custom graphics station id in the @class_id class
 	uint16 build_date;
 
 	//uint16 airport_flags;
--- a/station_cmd.c	Mon Apr 17 18:35:44 2006 +0000
+++ b/station_cmd.c	Mon Apr 17 18:47:50 2006 +0000
@@ -2817,8 +2817,8 @@
 
 	SLE_VAR(Station,last_vehicle,          SLE_UINT16),
 
-	SLE_CONDVAR(Station,class_id,          SLE_UINT8, 3, SL_MAX_VERSION),
-	SLE_CONDVAR(Station,stat_id,           SLE_UINT8, 3, SL_MAX_VERSION),
+	// Was custom station class and id
+	SLE_CONDNULL(2, 3, 25),
 	SLE_CONDVAR(Station,build_date,        SLE_UINT16, 3, SL_MAX_VERSION),
 
 	SLE_CONDREF(Station,bus_stops,         REF_ROADSTOPS, 6, SL_MAX_VERSION),
--- a/waypoint.c	Mon Apr 17 18:35:44 2006 +0000
+++ b/waypoint.c	Mon Apr 17 18:47:50 2006 +0000
@@ -374,8 +374,6 @@
 	stat.town = GetTown(wp->town_index);
 	stat.string_id = wp->string == STR_NULL ? /* FIXME? */ 0 : wp->string;
 	stat.build_date = wp->build_date;
-	stat.class_id = 6;
-	stat.stat_id = wp->stat_id;
 
 	return &stat;
 }