fixed memory leak in double tap gesture

fixed some compiler warnings
removed dead and useless code
This commit is contained in:
techdragon.nguyen@gmail.com
2011-10-08 00:56:07 +00:00
parent 9f09bbeec3
commit fbe2e44814
14 changed files with 53 additions and 51 deletions
+1 -3
View File
@@ -2311,7 +2311,6 @@ int MenuAbility::resolve()
{
this->triggered = 1;
MTGAbility * a = this;
a->target = this->target;
return a->addToGame();
}
@@ -3522,7 +3521,7 @@ void APhaseAction::Update(float dt)
MTGCardInstance * _target = NULL;
if(target)
_target = (MTGCardInstance *) target;
if(!sAbility.size() || (!target||(!_target->currentZone && _target != this->source)))
if(!sAbility.size() || (!target || _target != this->source))
{
this->forceDestroy = 1;
return;
@@ -4159,7 +4158,6 @@ void ATutorialMessage::Render()
posY += 30;
f->DrawString(_(mMessage).c_str(), posX, posY);
posY += 20;
f->SetScale(1);
}