diff options
author | frosch <frosch@openttd.org> | 2009-10-24 18:51:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-24 18:51:21 +0000 |
commit | 8e23ba540c62bce9cba1f58435b019757869ed29 (patch) | |
tree | 0a9b0c85926507c30126791c066a741e1445d958 /src/newgrf.cpp | |
parent | 64f9ee3a2dce292a6d6980b0c65b2d2dbfc3f570 (diff) | |
download | openttd-8e23ba540c62bce9cba1f58435b019757869ed29.tar.xz |
(svn r17857) -Fix (r10442): [NewGRF] 'subtract-in' is also signed for production callback version 0.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 28dca23b0..aa07f1774 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2966,15 +2966,15 @@ static void NewSpriteGroup(byte *buf, size_t len) group->version = type; if (type == 0) { for (uint i = 0; i < 3; i++) { - group->substract_input[i] = grf_load_word(&buf); + group->subtract_input[i] = (int16)grf_load_word(&buf); // signed } for (uint i = 0; i < 2; i++) { - group->add_output[i] = grf_load_word(&buf); + group->add_output[i] = grf_load_word(&buf); // unsigned } group->again = grf_load_byte(&buf); } else { for (uint i = 0; i < 3; i++) { - group->substract_input[i] = grf_load_byte(&buf); + group->subtract_input[i] = grf_load_byte(&buf); } for (uint i = 0; i < 2; i++) { group->add_output[i] = grf_load_byte(&buf); |