diff options
author | tron <tron@openttd.org> | 2004-11-15 11:54:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-15 11:54:35 +0000 |
commit | 2f35fea0975fe5242d5383331aa2f16e9849135b (patch) | |
tree | 237d0fe88d9b9e72918861db823b6302db8c8a1c /station_cmd.c | |
parent | 57c472e093aad072d5c4113790dfafbca0f40fa6 (diff) | |
download | openttd-2f35fea0975fe5242d5383331aa2f16e9849135b.tar.xz |
(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |