mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
turns out reorganizeCards is not needed if the view doesn't change
This commit is contained in:
parent
57ef80d82d
commit
0ed883883a
1 changed files with 0 additions and 2 deletions
|
|
@ -288,7 +288,6 @@ void ZoneViewZone::addCardImpl(CardItem *card, int x, int /*y*/)
|
||||||
cards.append(card);
|
cards.append(card);
|
||||||
} else {
|
} else {
|
||||||
updateCardIds(ADD_CARD);
|
updateCardIds(ADD_CARD);
|
||||||
reorganizeCards();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -327,7 +326,6 @@ void ZoneViewZone::removeCard(int position)
|
||||||
position -= cards.first()->getId();
|
position -= cards.first()->getId();
|
||||||
if (position < 0 || position >= cards.size()) {
|
if (position < 0 || position >= cards.size()) {
|
||||||
updateCardIds(REMOVE_CARD);
|
updateCardIds(REMOVE_CARD);
|
||||||
reorganizeCards();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue