only keep the anchor flag if it's already there

develop
Myk Taylor 2022-12-30 00:53:44 -08:00
parent 4d74f7c727
commit 1265d531d5
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

@ -145,7 +145,9 @@ static bool doSetTile_default(const Pen &pen, int x, int y, bool map)
*screen = 0;
*texpos = 0;
*texpos_lower = 0;
*flag = 4; // remove SCREENTEXPOS_FLAG_ANCHOR_SUBORDINATE
// keep SCREENTEXPOS_FLAG_ANCHOR_SUBORDINATE so occluded anchored textures
// don't appear corrupted
*flag &= 4;
if (gps->top_in_use) {
screen = &gps->screen_top[index * 8];
@ -156,7 +158,7 @@ static bool doSetTile_default(const Pen &pen, int x, int y, bool map)
*screen = 0;
*texpos = 0;
*texpos_lower = 0;
*flag = 4; // remove SCREENTEXPOS_FLAG_ANCHOR_SUBORDINATE
*flag &= 4; // keep SCREENTEXPOS_FLAG_ANCHOR_SUBORDINATE
}
if (pen.tile_mode == Screen::Pen::CharColor)