Changeset - r19265:e2eff9dbb4f2
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-04-22 16:28:23
frosch@openttd.org
(svn r24168) -Codechange: Simplify default station class instantiation.
1 file changed with 2 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -33,15 +33,11 @@ template <typename Tspec, typename Tid, 
 
	/* Set up initial data */
 
	classes[0].global_id = 'DFLT';
 
	classes[0].name = STR_STATION_CLASS_DFLT;
 
	classes[0].count = 1;
 
	classes[0].spec = MallocT<StationSpec*>(1);
 
	classes[0].spec[0] = NULL;
 
	classes[0].Insert(NULL);
 

	
 
	classes[1].global_id = 'WAYP';
 
	classes[1].name = STR_STATION_CLASS_WAYP;
 
	classes[1].count = 1;
 
	classes[1].spec = MallocT<StationSpec*>(1);
 
	classes[1].spec[0] = NULL;
 
	classes[1].Insert(NULL);
 
}
 

	
 
INSTANTIATE_NEWGRF_CLASS_METHODS(StationClass, StationSpec, StationClassID, STAT_CLASS_MAX)
0 comments (0 inline, 0 general)