2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 23:47:44 +00:00

Initial CChozoGhost imp

This commit is contained in:
2020-01-20 20:00:40 -08:00
parent 9c5dec94c6
commit 8d90edd55f
5 changed files with 83 additions and 11 deletions

View File

@@ -207,8 +207,8 @@ void CActor::DrawTouchBounds() const {
}
void CActor::RenderInternal(const CStateManager& mgr) const {
SCOPED_GRAPHICS_DEBUG_GROUP(fmt::format(fmt("CActor::RenderInternal {} {} {}"),
x8_uid, xc_editorId, x10_name).c_str(), zeus::skOrange);
SCOPED_GRAPHICS_DEBUG_GROUP(
fmt::format(fmt("CActor::RenderInternal {} {} {}"), x8_uid, xc_editorId, x10_name).c_str(), zeus::skOrange);
CModelData::EWhichModel which = CModelData::GetRenderingModel(mgr);
if (which == CModelData::EWhichModel::ThermalHot) {
@@ -265,8 +265,8 @@ void CActor::Render(const CStateManager& mgr) const {
if (xe5_29_globalTimeProvider) {
RenderInternal(mgr);
} else {
float timeSince = CGraphics::GetSecondsMod900() - xbc_time;
float tpTime = timeSince - std::floor(timeSince / 900.f) * 900.f;
const float timeSince = CGraphics::GetSecondsMod900() - xbc_time;
const float tpTime = timeSince - std::floor(timeSince / 900.f) * 900.f;
CTimeProvider tp(tpTime);
RenderInternal(mgr);
}