diff options
author | yexo <yexo@openttd.org> | 2010-02-22 14:17:17 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-22 14:17:17 +0000 |
commit | 06dc421f2ab025aa248a372d48c5701d7a9e2ff9 (patch) | |
tree | 7542a38804ee09694b5ea606a7a74a861c1375b5 /src/newgrf.cpp | |
parent | 698737f485cfbdd1605faecd50395bb67f7dac75 (diff) | |
download | openttd-06dc421f2ab025aa248a372d48c5701d7a9e2ff9.tar.xz |
(svn r19199) -Codechange: add a 'name'-property to airport tiles
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index f856310ae..786d33959 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3845,6 +3845,14 @@ static void FeatureNewName(ByteReader *buf) } break; + case 0xC7: // Airporttile name + if (_cur_grffile->airtspec == NULL || _cur_grffile->airtspec[GB(id, 0, 8)] == NULL) { + grfmsg(1, "FeatureNewName: Attempt to name undefined airport tile 0x%X, ignoring", GB(id, 0, 8)); + } else { + _cur_grffile->airtspec[GB(id, 0, 8)]->name = AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED); + } + break; + case 0xC9: // House name if (_cur_grffile->housespec == NULL || _cur_grffile->housespec[GB(id, 0, 8)] == NULL) { grfmsg(1, "FeatureNewName: Attempt to name undefined house 0x%X, ignoring.", GB(id, 0, 8)); |