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 | 210d757499c0e2323ee75d39105e7c68dc119156 (patch) | |
tree | b590f481987fb948fc51c4d6da6e843f20b8c979 /src/newgrf.cpp | |
parent | de015fbf90615fa1321abf710c4a00e5a390b6ce (diff) | |
download | openttd-210d757499c0e2323ee75d39105e7c68dc119156.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: |