mirror of https://github.com/pmret/papermario.git
meow2
This commit is contained in:
parent
7043f491ea
commit
8186c6da3b
|
@ -32,7 +32,7 @@ s32 _spr_sign_extend_16bit(u16 val) {
|
||||||
s32 temp = val & 0xFFFF;
|
s32 temp = val & 0xFFFF;
|
||||||
|
|
||||||
if (temp & 0x8000) {
|
if (temp & 0x8000) {
|
||||||
return temp | 0xFFFF0000;
|
return temp | ~0xFFFF;
|
||||||
} else {
|
} else {
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue