src/misc_gui.cpp
changeset 9713 a1a2cbdb1090
parent 9693 cbc09e498392
child 9714 5d785e184f2d
equal deleted inserted replaced
9712:f86db5d17c58 9713:a1a2cbdb1090
   114 
   114 
   115 		/* Because build_date is not set yet in every TileDesc, we make sure it is empty */
   115 		/* Because build_date is not set yet in every TileDesc, we make sure it is empty */
   116 		TileDesc td;
   116 		TileDesc td;
   117 		AcceptedCargo ac;
   117 		AcceptedCargo ac;
   118 
   118 
   119 		td.build_date = 0;
   119 		td.build_date = INVALID_DATE;
   120 
   120 
   121 		/* Most tiles have only one owner, but
   121 		/* Most tiles have only one owner, but
   122 		 *  - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
   122 		 *  - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
   123 		 *  - roads can have up to four owners (railroad, road, tram, 3rd-roadtype "highway").
   123 		 *  - roads can have up to four owners (railroad, road, tram, 3rd-roadtype "highway").
   124 		 */
   124 		 */
   178 		}
   178 		}
   179 		GetString(this->landinfo_data[line_nr], STR_01A8_LOCAL_AUTHORITY, lastof(this->landinfo_data[line_nr]));
   179 		GetString(this->landinfo_data[line_nr], STR_01A8_LOCAL_AUTHORITY, lastof(this->landinfo_data[line_nr]));
   180 		line_nr++;
   180 		line_nr++;
   181 
   181 
   182 		/* Build date */
   182 		/* Build date */
   183 		if (td.build_date != 0) {
   183 		if (td.build_date != INVALID_DATE) {
   184 			SetDParam(0, td.build_date);
   184 			SetDParam(0, td.build_date);
   185 			GetString(this->landinfo_data[line_nr], STR_BUILD_DATE, lastof(this->landinfo_data[line_nr]));
   185 			GetString(this->landinfo_data[line_nr], STR_BUILD_DATE, lastof(this->landinfo_data[line_nr]));
   186 			line_nr++;
   186 			line_nr++;
   187 		}
   187 		}
   188 
   188