From 0af00a313ebcd967e139359b564afa507b2a7f7b Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sun, 14 Aug 2016 21:26:19 +0800 Subject: [PATCH] adjust p/t box when tapped only --- projects/mtg/src/CardGui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/CardGui.cpp b/projects/mtg/src/CardGui.cpp index e80e8212c..2ee2a1fa8 100644 --- a/projects/mtg/src/CardGui.cpp +++ b/projects/mtg/src/CardGui.cpp @@ -386,7 +386,7 @@ void CardGui::Render() char buffer[200]; sprintf(buffer, "%i/%i", card->power, card->life); //move up the p/t box by increasing ymody - float ymody = (card->isAttacker()||card->isDefenser())?-6.0f:0.0f; + float ymody = ((card->isAttacker()||card->isDefenser())&&card->isTapped())?-6.0f:0.0f; renderer->FillRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ, ARGB(((static_cast(actA))/2),0,0,0)); renderer->DrawRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ,