diff options
author | peter1138 <peter1138@openttd.org> | 2008-04-19 23:19:12 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-04-19 23:19:12 +0000 |
commit | 3b7558b89c2c491b61b9fe41e93bb80f400aecb5 (patch) | |
tree | b590f481987fb948fc51c4d6da6e843f20b8c979 /src/newgrf.cpp | |
parent | fa4967d8459b1626348ff62342e77c8bd14720c0 (diff) | |
download | openttd-3b7558b89c2c491b61b9fe41e93bb80f400aecb5.tar.xz |
(svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes)
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 3719aaf13..e222a63c0 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1120,19 +1120,17 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int statspec->blocked = grf_load_byte(&buf); break; - case 0x16: // @todo Animation info - grf_load_word(&buf); - ret = true; + case 0x16: // Animation info + statspec->anim_frames = grf_load_byte(&buf); + statspec->anim_status = grf_load_byte(&buf); break; - case 0x17: // @todo Animation speed - grf_load_byte(&buf); - ret = true; + case 0x17: // Animation speed + statspec->anim_speed = grf_load_byte(&buf); break; - case 0x18: // @todo Animation triggers - grf_load_word(&buf); - ret = true; + case 0x18: // Animation triggers + statspec->anim_triggers = grf_load_word(&buf); break; default: |