Removed compilation warnings.

This commit is contained in:
Xawotihs
2011-10-07 15:25:15 +00:00
parent c0c8688ede
commit 9f09bbeec3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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");