Fixed issues found by XCode.
This commit is contained in:
@@ -297,7 +297,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
float mTimer;
|
float mTimer;
|
||||||
float mFrameTime;
|
float mFrameTime;
|
||||||
JAnimator* mAnimator;
|
|
||||||
vector<JAnimatorObject *> mObjects;
|
vector<JAnimatorObject *> mObjects;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ private:
|
|||||||
float mTexY;
|
float mTexY;
|
||||||
float mTexWidth;
|
float mTexWidth;
|
||||||
float mTexHeight;
|
float mTexHeight;
|
||||||
JTexture* mTexture;
|
|
||||||
JQuad* mQuad;
|
JQuad* mQuad;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -17,7 +17,6 @@ private:
|
|||||||
WSrcCards * setSrc;
|
WSrcCards * setSrc;
|
||||||
SimpleMenu * menu;
|
SimpleMenu * menu;
|
||||||
bool showMenu;
|
bool showMenu;
|
||||||
bool showAlt;
|
|
||||||
bool saveMe;
|
bool saveMe;
|
||||||
int mState;
|
int mState;
|
||||||
int mDetailItem;
|
int mDetailItem;
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ protected:
|
|||||||
{
|
{
|
||||||
static const float HEIGHT;
|
static const float HEIGHT;
|
||||||
unsigned attackers;
|
unsigned attackers;
|
||||||
unsigned blockers;
|
|
||||||
unsigned currentAttacker;
|
unsigned currentAttacker;
|
||||||
float height;
|
float height;
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ class SimplePopup: public JGuiController
|
|||||||
private:
|
private:
|
||||||
float mWidth, mX, mY;
|
float mWidth, mX, mY;
|
||||||
int mMaxLines;
|
int mMaxLines;
|
||||||
int mFontId;
|
|
||||||
DeckMetaData * mDeckInformation;
|
DeckMetaData * mDeckInformation;
|
||||||
string mTitle;
|
string mTitle;
|
||||||
WFont *mTextFont;
|
WFont *mTextFont;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#ifndef WRESOURCE_FWD_H
|
#ifndef WRESOURCE_FWD_H
|
||||||
#define WRESOURCE_FWD_H
|
#define WRESOURCE_FWD_H
|
||||||
|
|
||||||
#ifndef WP8
|
#if (__cplusplus > 199711L)
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
typedef boost::shared_ptr<JQuad> JQuadPtr;
|
|
||||||
#else
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
typedef std::shared_ptr<JQuad> JQuadPtr;
|
typedef std::shared_ptr<JQuad> JQuadPtr;
|
||||||
|
#else
|
||||||
|
#include <boost/shared_ptr.hpp>
|
||||||
|
typedef boost::shared_ptr<JQuad> JQuadPtr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1994,28 +1994,23 @@ int AADynamic::resolve()
|
|||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_ITSELF:
|
case DYNAMIC_ABILITY_WHO_ITSELF:
|
||||||
source = ((MTGCardInstance *) _target);
|
source = ((MTGCardInstance *) _target);
|
||||||
_target = _target;
|
|
||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_TARGETCONTROLLER:
|
case DYNAMIC_ABILITY_WHO_TARGETCONTROLLER:
|
||||||
_target = _target;
|
|
||||||
secondaryTarget = ((MTGCardInstance *) _target)->controller();
|
secondaryTarget = ((MTGCardInstance *) _target)->controller();
|
||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_TARGETOPPONENT:
|
case DYNAMIC_ABILITY_WHO_TARGETOPPONENT:
|
||||||
_target = _target;
|
|
||||||
secondaryTarget = ((MTGCardInstance *) _target)->controller()->opponent();
|
secondaryTarget = ((MTGCardInstance *) _target)->controller()->opponent();
|
||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_TOSOURCE:
|
case DYNAMIC_ABILITY_WHO_TOSOURCE:
|
||||||
tosrc = true;
|
tosrc = true;
|
||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_SOURCECONTROLLER:
|
case DYNAMIC_ABILITY_WHO_SOURCECONTROLLER:
|
||||||
_target = _target;
|
|
||||||
secondaryTarget = ((MTGCardInstance *) OriginalSrc)->controller();
|
secondaryTarget = ((MTGCardInstance *) OriginalSrc)->controller();
|
||||||
break;
|
break;
|
||||||
case DYNAMIC_ABILITY_WHO_SOURCEOPPONENT:
|
case DYNAMIC_ABILITY_WHO_SOURCEOPPONENT:
|
||||||
secondaryTarget = OriginalSrc->controller()->opponent();
|
secondaryTarget = OriginalSrc->controller()->opponent();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_target = _target;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(amountsource == DYNAMIC_MYSELF_AMOUNT)
|
if(amountsource == DYNAMIC_MYSELF_AMOUNT)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ inline float GuiPlay::VertStack::nextX()
|
|||||||
}
|
}
|
||||||
|
|
||||||
GuiPlay::BattleField::BattleField() :
|
GuiPlay::BattleField::BattleField() :
|
||||||
attackers(0), blockers(0), height(0.0), red(0), colorFlow(0)
|
attackers(0), height(0.0), red(0), colorFlow(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
const float GuiPlay::BattleField::HEIGHT = 80.0f;
|
const float GuiPlay::BattleField::HEIGHT = 80.0f;
|
||||||
|
|||||||
@@ -4276,8 +4276,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
|
|||||||
if (card->hasType(Subtypes::TYPE_INSTANT) || card->hasType(Subtypes::TYPE_SORCERY))
|
if (card->hasType(Subtypes::TYPE_INSTANT) || card->hasType(Subtypes::TYPE_SORCERY))
|
||||||
{
|
{
|
||||||
MTGPlayerCards * zones = card->owner->game;
|
MTGPlayerCards * zones = card->owner->game;
|
||||||
if(card->getCurrentZone())
|
|
||||||
card->currentZone->owner->game;//grab it from where ever it is.
|
|
||||||
MTGPlayerCards * Endzones = card->owner->game;//put them in thier owners respective zones as per rules.
|
MTGPlayerCards * Endzones = card->owner->game;//put them in thier owners respective zones as per rules.
|
||||||
if (card->basicAbilities[(int)Constants::EXILEDEATH])
|
if (card->basicAbilities[(int)Constants::EXILEDEATH])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|
||||||
SimplePopup::SimplePopup(int id, JGuiListener* listener, const int fontId, const char * _title, DeckMetaData* deckMetaData, MTGAllCards * collection, float cancelX, float cancelY) :
|
SimplePopup::SimplePopup(int id, JGuiListener* listener, const int fontId, const char * _title, DeckMetaData* deckMetaData, MTGAllCards * collection, float cancelX, float cancelY) :
|
||||||
JGuiController(JGE::GetInstance(), id, listener), mFontId(fontId), mCollection(collection)
|
JGuiController(JGE::GetInstance(), id, listener), mCollection(collection)
|
||||||
{
|
{
|
||||||
mX = 19;
|
mX = 19;
|
||||||
mY = 66;
|
mY = 66;
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ TEMPLATE = app
|
|||||||
|
|
||||||
#!macx:CONFIG += precompile_header
|
#!macx:CONFIG += precompile_header
|
||||||
unix|macx:QMAKE_CXXFLAGS += -Wno-unused-parameter
|
unix|macx:QMAKE_CXXFLAGS += -Wno-unused-parameter
|
||||||
unix:!macx:QMAKE_CXXFLAGS += -Wno-unused-but-set-parameter
|
unix:!*macx*:QMAKE_CXXFLAGS += -Wno-unused-but-set-parameter
|
||||||
unix:!macx:QMAKE_CXXFLAGS += -Wno-unused-but-set-variable
|
unix:!*macx*:QMAKE_CXXFLAGS += -Wno-unused-but-set-variable
|
||||||
unix|macx:QMAKE_CXXFLAGS += -Wno-unused-value
|
unix|*macx*:QMAKE_CXXFLAGS += -Wno-unused-value
|
||||||
unix:!macx:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
|
unix:!*macx*:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
|
||||||
unix:!macx:!maemo5:!symbian:QMAKE_CXXFLAGS += -Werror
|
unix:!*macx*:!maemo5:!symbian:QMAKE_CXXFLAGS += -Werror
|
||||||
|
|
||||||
windows:DEFINES += _CRT_SECURE_NO_WARNINGS
|
windows:DEFINES += _CRT_SECURE_NO_WARNINGS
|
||||||
unix|macx:DEFINES += LINUX
|
unix|macx:DEFINES += LINUX
|
||||||
|
|||||||
Reference in New Issue
Block a user