Mercurial > hg > openttd
changeset 3640:707742f97c17 draft
(svn r4549) - NewGRF: store the grf version from Action 0x08.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sun, 23 Apr 2006 18:03:55 +0000 |
parents | 2ce67e880abf |
children | 0dc7cec7ee0c |
files | newgrf.c newgrf.h |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/newgrf.c +++ b/newgrf.c @@ -2017,6 +2017,7 @@ } } +/* Action 0x08 */ static void GRFInfo(byte *buf, int len) { /* <08> <version> <grf-id> <name> <info> @@ -2039,12 +2040,14 @@ info = name + strlen(name) + 1; _cur_grffile->grfid = grfid; + _cur_grffile->grf_version = version; _cur_grffile->flags |= 0x0001; /* set active flag */ DEBUG(grf, 1) ("[%s] Loaded GRFv%d set %08lx - %s:\n%s", _cur_grffile->filename, version, grfid, name, info); } +/* Action 0x0A */ static void SpriteReplace(byte *buf, int len) { /* <0A> <num-sets> <set1> [<set2> ...]