mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-03 13:41:15 +00:00
Early return
This commit is contained in:
parent
7d334f83cd
commit
066771e366
@ -384,6 +384,8 @@ void Act3Ammo::Animate(float p_time)
|
||||
m_world->RemoveDonut(*this);
|
||||
m_world->TriggerHitSound(4);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
else {
|
||||
if (IsPizza()) {
|
||||
@ -394,6 +396,7 @@ void Act3Ammo::Animate(float p_time)
|
||||
assert(SoundManager()->GetCacheSoundManager());
|
||||
SoundManager()->GetCacheSoundManager()->Play("stickdn", NULL, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
LegoPathActorSet& plpas = m_boundary->GetActors();
|
||||
LegoPathActorSet lpas(plpas);
|
||||
@ -428,10 +431,14 @@ void Act3Ammo::Animate(float p_time)
|
||||
|
||||
assert(m_world);
|
||||
|
||||
#ifdef BETA10
|
||||
m_world->EatPizza(index);
|
||||
#else
|
||||
if (m_world->m_pizzas[index].IsValid() && !m_world->m_pizzas[index].IsSharkFood()) {
|
||||
m_world->EatPizza(index);
|
||||
m_world->m_brickster->FUN_100417c0();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (IsDonut()) {
|
||||
assert(SoundManager()->GetCacheSoundManager());
|
||||
@ -485,4 +492,3 @@ void Act3Ammo::Animate(float p_time)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user