Adapt the selection to match an other pile
Definition at line 241 of file heap.c.
References Heap::empty(), Card::rank, and Heap::top().
Referenced by Tableau::move().
if (currentChanged < currentSelected)
currentChanged = currentSelected;
int diff = other->top().rank - top().rank;
if (diff > 0 && diff <= currentSelected)
currentSelected = diff;
currentSelected = 0;