d_armedf update, fix legion junk on screen

This commit is contained in:
dinkc64 2015-07-11 13:12:47 +00:00
parent fad211e114
commit e419164b7e
1 changed files with 3 additions and 1 deletions

View File

@ -996,12 +996,14 @@ static void draw_txt_layer(INT32 transp)
sx = (sx << 3) - xoffset;
sy = (sy << 3) - yoffset;
if (scroll_type != 1) sx += 128;
if (sx >= 512) sx -= 512;
sx &= 0xff; // fix for left-most characters in Kozure
if (sx < -7 || sy < -7 || sx >= nScreenWidth || sy >= nScreenHeight) continue;
INT32 attr = vram[ofst+ofsta] & 0xff;
INT32 code = (vram[ofst] & 0xff) | ((attr & 3) << 8);
if (scroll_type == 3 && ofst < 0x12) continue; // ignore nb1414m4 params/fix text-garbage at the bottom of legion
if (transp) {
if (*flipscreen) {