Removed compilation warnings.
This commit is contained in:
@@ -35,7 +35,7 @@ int ActionLayer::removeFromGame(ActionElement * e)
|
|||||||
if (i == -1)
|
if (i == -1)
|
||||||
return 0; //Should not happen, it means we deleted thesame object twice?
|
return 0; //Should not happen, it means we deleted thesame object twice?
|
||||||
AbilityFactory af(observer);
|
AbilityFactory af(observer);
|
||||||
if(MTGAbility * a = dynamic_cast<MTGAbility*>(e))
|
if(dynamic_cast<MTGAbility*>(e))
|
||||||
{
|
{
|
||||||
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)e));
|
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)e));
|
||||||
if(manaObject)
|
if(manaObject)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ void GuiLayer::Add(JGuiObject *object)
|
|||||||
{
|
{
|
||||||
mObjects.push_back(object);
|
mObjects.push_back(object);
|
||||||
AbilityFactory af(observer);
|
AbilityFactory af(observer);
|
||||||
if(MTGAbility * a = dynamic_cast<MTGAbility*>(object))
|
if(dynamic_cast<MTGAbility*>(object))
|
||||||
{
|
{
|
||||||
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)object));
|
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)object));
|
||||||
if(manaObject)
|
if(manaObject)
|
||||||
@@ -36,7 +36,7 @@ int GuiLayer::Remove(JGuiObject *object)
|
|||||||
{
|
{
|
||||||
|
|
||||||
AbilityFactory af(observer);
|
AbilityFactory af(observer);
|
||||||
if(MTGAbility * a = dynamic_cast<MTGAbility*>(object))
|
if(dynamic_cast<MTGAbility*>(object))
|
||||||
{
|
{
|
||||||
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)object));
|
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)object));
|
||||||
if(manaObject)
|
if(manaObject)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
GuiPhaseBar::GuiPhaseBar(GameObserver* observer) :
|
GuiPhaseBar::GuiPhaseBar(GameObserver* observer) :
|
||||||
PlayGuiObject(0, 0, 106, 0, false), GuiLayer(observer),
|
GuiLayer(observer), PlayGuiObject(0, 0, 106, 0, false),
|
||||||
phase(NULL), angle(0.0f), zoomFactor(ICONSCALE)
|
phase(NULL), angle(0.0f), zoomFactor(ICONSCALE)
|
||||||
{
|
{
|
||||||
JQuadPtr quad = WResourceManager::Instance()->GetQuad("phasebar");
|
JQuadPtr quad = WResourceManager::Instance()->GetQuad("phasebar");
|
||||||
|
|||||||
Reference in New Issue
Block a user