Changeset - r12308:95187fb621c3
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-07-04 11:24:25
rubidium@openttd.org
(svn r16735) -Codechange: had_vehicle_of_type only stored 7 bits, all less that bit 7... but it was a word wasting space etc.
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/saveload/station_sl.cpp
Show inline comments
 
@@ -67,7 +67,8 @@ static const SaveLoad _station_desc[] = 
 
	    SLE_VAR(Station, string_id,                  SLE_STRINGID),
 
	SLE_CONDSTR(Station, name,                       SLE_STR, 0,                 84, SL_MAX_VERSION),
 
	SLE_CONDVAR(Station, indtype,                    SLE_UINT8,                 103, SL_MAX_VERSION),
 
	    SLE_VAR(Station, had_vehicle_of_type,        SLE_UINT16),
 
	SLE_CONDVAR(Station, had_vehicle_of_type,        SLE_FILE_U16 | SLE_VAR_U8,   0, 121),
 
	SLE_CONDVAR(Station, had_vehicle_of_type,        SLE_UINT8,                 122, SL_MAX_VERSION),
 

	
 
	    SLE_VAR(Station, time_since_load,            SLE_UINT8),
 
	    SLE_VAR(Station, time_since_unload,          SLE_UINT8),
src/station_base.h
Show inline comments
 
@@ -110,7 +110,7 @@ public:
 

	
 
	ViewportSign sign;
 

	
 
	uint16 had_vehicle_of_type;
 
	byte had_vehicle_of_type;
 

	
 
	byte time_since_load;
 
	byte time_since_unload;
0 comments (0 inline, 0 general)