GRID_HISTORY
if (gd->flags & GRID_HISTORY) {
gd->flags = GRID_HISTORY;
(gd->flags & GRID_HISTORY) &&
if ((s->grid->flags & GRID_HISTORY) &&
if (gd->flags & GRID_HISTORY) {
if (gd->flags & GRID_HISTORY && available > 0) {
s->grid->flags &= ~GRID_HISTORY;
if (s->saved_flags & GRID_HISTORY)
s->grid->flags |= GRID_HISTORY;
dst->grid->flags |= GRID_HISTORY;