Fix ObjAffineSet over multiple inputs

This commit is contained in:
Jeffrey Pfau 2014-07-23 00:54:11 -07:00
parent c7f7d0f752
commit f1a58c7254
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ static void _ObjAffineSet(struct GBA* gba) {
sx = cpu->memory.load16(cpu, offset, 0) / 256.f;
sy = cpu->memory.load16(cpu, offset + 2, 0) / 256.f;
theta = (cpu->memory.loadU16(cpu, offset + 4, 0) >> 8) / 128.f * M_PI;
offset += 6;
offset += 8;
// Rotation
a = d = cosf(theta);
b = c = sinf(theta);