[gamecode] Fix relative offset jumps

Yet another missed sign extension.
This commit is contained in:
Bill Currie 2022-01-04 14:30:20 +09:00
parent 4777f44ba1
commit 5de4c21557

View file

@ -1804,7 +1804,7 @@ pr_jump_mode (progs_t *pr, const dstatement_t *st)
switch (jump_ind) {
case 0:
// instruction relative offset
jump_offs = jump_offs + st->a;
jump_offs = jump_offs + (short) st->a;
break;
case 1:
// simple pointer dereference: *a