CScriptPointOfInterest: Brace conditionals where applicable

This commit is contained in:
Lioncash 2020-05-07 12:35:31 -04:00
parent 192cbd5e14
commit e47d0446b1
1 changed files with 3 additions and 2 deletions

View File

@ -31,11 +31,12 @@ void CScriptPointOfInterest::AddToRenderer(const zeus::CFrustum&, CStateManager&
void CScriptPointOfInterest::Render(CStateManager&) {}
void CScriptPointOfInterest::CalculateRenderBounds() {
if (xe8_pointSize == 0.f)
if (xe8_pointSize == 0.f) {
CActor::CalculateRenderBounds();
else
} else {
x9c_renderBounds = zeus::CAABox(x34_transform.origin - xe8_pointSize, x34_transform.origin + xe8_pointSize);
}
}
std::optional<zeus::CAABox> CScriptPointOfInterest::GetTouchBounds() const {
return {zeus::CAABox{x34_transform.origin, x34_transform.origin}};