fixed spr() rotation
@@ -199,6 +199,9 @@ static void drawSprite(tic_core* core, s32 index, s32 x, s32 y, s32 w, s32 h, u8
if (index < 0)
return;
+ rotate &= 0b11;
+ flip &= 0b11;
+
tic_tilesheet sheet = getTileSheetFromSegment(&core->memory, core->memory.ram.vram.vars.blit);
if (w == 1 && h == 1) {
tic_tileptr tile = tic_tilesheet_gettile(&sheet, index, false);
