Code:
CellClass * cellptr = &Map[257];
struct {
TemplateType TType; // Template type.
unsigned char TIcon; // Template icon number.
} temp;
temp.TType = TEMPLATE_BRUSH1;
temp.TIcon = 0;
cellptr->TType = temp.TType;
cellptr->TIcon = temp.TIcon;
cellptr->Recalc_Attributes();
Map.Flag_Cell(257);
struct {
TemplateType TType; // Template type.
unsigned char TIcon; // Template icon number.
} temp;
temp.TType = TEMPLATE_BRUSH1;
temp.TIcon = 0;
cellptr->TType = temp.TType;
cellptr->TIcon = temp.TIcon;
cellptr->Recalc_Attributes();
Map.Flag_Cell(257);
After triggering this code the cell is no longer passable as it should be.
In the classic graphics the cell gets correctly updated (both the passable status and the GRAPHIC itself), but in the remastered graphics it does NOT (not GRAPHIC update).
What am I missing here?