diff options
author | rubidium <rubidium@openttd.org> | 2010-08-07 22:07:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-07 22:07:07 +0000 |
commit | edbadde301d04264110b1b923ba80af367f6651c (patch) | |
tree | e9f8998e89b9811d9bc0febd58272339a63951c9 /src/newgrf.cpp | |
parent | cb4ab6a23158163e848ab2b5887d1eb449b86a4c (diff) | |
download | openttd-edbadde301d04264110b1b923ba80af367f6651c.tar.xz |
(svn r20406) -Codechange: make StationClass use the new generic class
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 6009d91b6..dbae29585 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1151,7 +1151,7 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte /* Swap classid because we read it in BE meaning WAYP or DFLT */ uint32 classid = buf->ReadDWord(); - (*spec)->cls_id = AllocateStationClass(BSWAP32(classid)); + (*spec)->cls_id = StationClass::Allocate(BSWAP32(classid)); break; } @@ -3893,7 +3893,7 @@ static void StationMapSpriteGroup(ByteReader *buf, uint8 idcount) statspec->spritegroup[CT_DEFAULT] = _cur_grffile->spritegroups[groupid]; statspec->grf_prop.grffile = _cur_grffile; statspec->grf_prop.local_id = stations[i]; - SetCustomStationSpec(statspec); + StationClass::Assign(statspec); } } @@ -4276,7 +4276,7 @@ static void FeatureNewName(ByteReader *buf) grfmsg(1, "FeatureNewName: Attempt to name undefined station 0x%X, ignoring", GB(id, 0, 8)); } else { StationClassID cls_id = _cur_grffile->stations[GB(id, 0, 8)]->cls_id; - SetStationClassName(cls_id, AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED)); + StationClass::SetName(cls_id, AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED)); } break; @@ -6764,7 +6764,7 @@ static void ResetNewGRFData() ResetIndustries(); /* Reset station classes */ - ResetStationClasses(); + StationClass::Reset(); ResetCustomStations(); /* Reset airport-related structures */ |