(svn r12947) -Fix: keep only first 15 bits for non failed callback results

pull/155/head
glx 16 years ago
parent cdf9ada599
commit 5b1e423889

@ -204,6 +204,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 */
if (value != CALLBACK_FAILED) value = GB(value, 0, 15);
nvarzero.type = SGT_CALLBACK;
nvarzero.g.callback.result = value;
return &nvarzero;

Loading…
Cancel
Save