J :
* Add the Trash facility and use it for CardViews. * Fix a graphical bug with card shadows. * Fix a graphical bug with limitors. * Enhance the graphical appearance of cards going to graveyard.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "../include/config.h"
|
||||
#include "../include/GameApp.h"
|
||||
#include "../include/GuiPlay.h"
|
||||
#include "../include/Trash.h"
|
||||
|
||||
#define CARD_WIDTH (31)
|
||||
|
||||
@@ -219,8 +220,7 @@ int GuiPlay::receiveEventMinus(WEvent * e)
|
||||
CardView* cv = *it;
|
||||
cs->Remove(cv);
|
||||
cards.erase(it);
|
||||
cv->card->view = NULL;
|
||||
delete cv;
|
||||
trash(cv);
|
||||
Replace();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user