From 2f35fea0975fe5242d5383331aa2f16e9849135b Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 15 Nov 2004 11:54:35 +0000 Subject: (svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky) --- station_cmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index d8181610a..bb110011b 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1035,7 +1035,8 @@ ResolveStationSpriteGroup(struct SpriteGroup *spritegroup, struct Station *stat) value = 0x01010000; } else { /* TODO: Only small fraction done. */ - // 0x80 + offset - 0x10 + // TTDPatch runs on little-endian arch; + // Variable is 0x70 + offset in the TTD's station structure switch (dsg->variable - 0x70) { case 0x80: if (stat) value = stat->facilities; @@ -1053,7 +1054,7 @@ ResolveStationSpriteGroup(struct SpriteGroup *spritegroup, struct Station *stat) if (stat) value = stat->airport_flags & 0xFFFF; break; case 0x87: - if (stat) value = (stat->airport_flags >> 8) & 0xFF; + if (stat) value = stat->airport_flags & 0xFF; break; case 0x8A: if (stat) value = stat->build_date; -- cgit v1.2.3-54-g00ecf