fix flip and image

This commit is contained in:
Anthony Calosa
2016-08-13 21:14:43 +08:00
parent 27145bdabe
commit df3e6e5fb7
2 changed files with 5 additions and 1 deletions

View File

@@ -403,7 +403,7 @@ void CardGui::Render()
mFont->SetScale(actZ);
mFont->SetScale(actZ);
float halfbufferW = (mFont->GetStringWidth(buffer))/2;
mFont->DrawString(buffer, actX - halfbufferW * actZ, actY + 7 * actZ);
mFont->DrawString(buffer, actX - halfbufferW, actY + 7 * actZ);
mFont->SetScale(1);
}

View File

@@ -129,6 +129,8 @@ void MTGCardInstance::copy(MTGCardInstance * card)
alias = data->alias;
copiedID = card->copiedID;
doubleFaced = data->doubleFaced;
origpower = card->origpower;//for flip
origtoughness = card->origtoughness;//for flip
//Now this is dirty...
int backupid = mtgid;
@@ -147,6 +149,8 @@ void MTGCardInstance::copy(MTGCardInstance * card)
mtgid = card->getMTGId(); ///////////////////////////////////////////////////
setId = card->setId; // Copier/Cloner cards produces the same token...//
rarity = card->getRarity(); ///////////////////////////////////////////////////
setMTGId(card->copiedID); //**************sets copier image****************//
}
castMethod = castMethodBackUP;
backupTargets = this->backupTargets;