mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-18 22:11:16 +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->RemoveDonut(*this);
|
||||||
m_world->TriggerHitSound(4);
|
m_world->TriggerHitSound(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (IsPizza()) {
|
if (IsPizza()) {
|
||||||
@ -394,6 +396,7 @@ void Act3Ammo::Animate(float p_time)
|
|||||||
assert(SoundManager()->GetCacheSoundManager());
|
assert(SoundManager()->GetCacheSoundManager());
|
||||||
SoundManager()->GetCacheSoundManager()->Play("stickdn", NULL, FALSE);
|
SoundManager()->GetCacheSoundManager()->Play("stickdn", NULL, FALSE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LegoPathActorSet& plpas = m_boundary->GetActors();
|
LegoPathActorSet& plpas = m_boundary->GetActors();
|
||||||
LegoPathActorSet lpas(plpas);
|
LegoPathActorSet lpas(plpas);
|
||||||
@ -428,10 +431,14 @@ void Act3Ammo::Animate(float p_time)
|
|||||||
|
|
||||||
assert(m_world);
|
assert(m_world);
|
||||||
|
|
||||||
|
#ifdef BETA10
|
||||||
|
m_world->EatPizza(index);
|
||||||
|
#else
|
||||||
if (m_world->m_pizzas[index].IsValid() && !m_world->m_pizzas[index].IsSharkFood()) {
|
if (m_world->m_pizzas[index].IsValid() && !m_world->m_pizzas[index].IsSharkFood()) {
|
||||||
m_world->EatPizza(index);
|
m_world->EatPizza(index);
|
||||||
m_world->m_brickster->FUN_100417c0();
|
m_world->m_brickster->FUN_100417c0();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (IsDonut()) {
|
if (IsDonut()) {
|
||||||
assert(SoundManager()->GetCacheSoundManager());
|
assert(SoundManager()->GetCacheSoundManager());
|
||||||
@ -485,4 +492,3 @@ void Act3Ammo::Animate(float p_time)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user