This commit is contained in:
Csaba Molnar 2014-03-15 19:58:25 +01:00 committed by Vincent Lejeune
parent 571b3a8e34
commit 83ae6909b5
2 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ public:
ACHIEVE_STRIKE = 2,
ACHIEVE_ARCH_ENEMY = 3,
ACHIEVE_MARATHONER = 4,
ACHIEVE_SKIDDING = 5
ACHIEVE_SKIDDING = 5
};
/** Achievement check type:
* ALL_AT_LEAST: All goal values must be reached (or exceeded).

View File

@ -415,11 +415,11 @@ void Skidding::update(float dt, bool is_on_ground,
bonus_force, bonus_time,
/*fade-out-time*/ 1.0f);
StateManager::ActivePlayer *c = m_kart->getController()->getPlayer();
if (c && c->getConstProfile() == PlayerManager::get()->getCurrentPlayer())
{
PlayerManager::increaseAchievement(AchievementInfo::ACHIEVE_SKIDDING, "skidding");
}
StateManager::ActivePlayer *c = m_kart->getController()->getPlayer();
if (c && c->getConstProfile() == PlayerManager::get()->getCurrentPlayer())
{
PlayerManager::increaseAchievement(AchievementInfo::ACHIEVE_SKIDDING, "skidding");
}
}
else {
m_kart->getKartGFX()