Fixes for exclusion/inclusion combinations of colors or abilities.

This commit is contained in:
wrenczes
2011-04-28 05:01:06 +00:00
parent 7e4364b484
commit 8610531bf3
6 changed files with 94 additions and 82 deletions

View File

@@ -258,13 +258,13 @@ void CardGui::Render()
mFont->SetScale(1);
}
}
if (tc && !tc->canTarget(card))
{
if (!shadow)
shadow = WResourceManager::Instance()->GetQuad("shadow");
shadow->SetColor(ARGB(200,255,255,255));
renderer->RenderQuad(shadow.get(), actX, actY, actT, (28 * actZ + 1) / 16, 40 * actZ / 16);
}
//if (tc && !tc->canTarget(card))
//{
// if (!shadow)
// shadow = WResourceManager::Instance()->GetQuad("shadow");
// shadow->SetColor(ARGB(200,255,255,255));
// renderer->RenderQuad(shadow.get(), actX, actY, actT, (28 * actZ + 1) / 16, 40 * actZ / 16);
//}
PlayGuiObject::Render();
}