diff options
author | peter1138 <peter1138@openttd.org> | 2006-06-03 19:17:34 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-06-03 19:17:34 +0000 |
commit | ce90b70a4181dde842beca57299843b977e32677 (patch) | |
tree | 2d3c86e0fa9409dd92f7dc13a9d86456f0eb2028 | |
parent | 4565989d54f2a51886605906fa4f6b14f5b3deee (diff) | |
download | openttd-ce90b70a4181dde842beca57299843b977e32677.tar.xz |
(svn r5087) - NewGRF: Fix thinko in returning a calculated callback result
-rw-r--r-- | newgrf_spritegroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_spritegroup.c b/newgrf_spritegroup.c index 0b94ff984..db3db7a9d 100644 --- a/newgrf_spritegroup.c +++ b/newgrf_spritegroup.c @@ -173,7 +173,7 @@ static inline const SpriteGroup *ResolveVariable(const SpriteGroup *group, Resol if (group->g.determ.num_ranges == 0) { /* nvar == 0 is a special case -- we turn our value into a callback result */ nvarzero.type = SGT_CALLBACK; - nvarzero.g.callback.result = GB(value, 0, 15) | 0x8000; + nvarzero.g.callback.result = GB(value, 0, 15); return &nvarzero; } |