mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-25 02:52:06 +00:00
[gamecode] Fix relative offset jumps
Yet another missed sign extension.
This commit is contained in:
parent
4777f44ba1
commit
5de4c21557
1 changed files with 1 additions and 1 deletions
|
@ -1804,7 +1804,7 @@ pr_jump_mode (progs_t *pr, const dstatement_t *st)
|
||||||
switch (jump_ind) {
|
switch (jump_ind) {
|
||||||
case 0:
|
case 0:
|
||||||
// instruction relative offset
|
// instruction relative offset
|
||||||
jump_offs = jump_offs + st->a;
|
jump_offs = jump_offs + (short) st->a;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
// simple pointer dereference: *a
|
// simple pointer dereference: *a
|
||||||
|
|
Loading…
Reference in a new issue