2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 22:46:09 +00:00

Get MP1 Trilogy loading, implement version difference in CGuiTextPane, harden FrontEnd for Trilogy missing files

This commit is contained in:
2022-02-23 00:18:50 -08:00
parent 0108ae12b5
commit 1685489303
10 changed files with 84 additions and 57 deletions

View File

@@ -2,7 +2,7 @@
#include "Runtime/Streams/IOStreams.hpp"
namespace metaforce::MP1 {
CTweakTargeting::CTweakTargeting(CInputStream& in, bool hasNewFields) {
CTweakTargeting::CTweakTargeting(CInputStream& in) {
x4_targetRadiusMode = in.ReadLong();
x8_currLockOnExitDuration = in.ReadFloat();
xc_currLockOnEnterDuration = in.ReadFloat();
@@ -127,11 +127,6 @@ CTweakTargeting::CTweakTargeting(CInputStream& in, bool hasNewFields) {
x220_scanTargetClampMax = in.ReadFloat();
x224_angularLagSpeed = in.ReadFloat();
if (hasNewFields) {
x218_ = in.ReadFloat();
x21c_ = in.ReadFloat();
}
x124_chargeTickAnglePitch = -zeus::degToRad(x124_chargeTickAnglePitch);
x140_lockDaggerAngle0 = zeus::degToRad(x140_lockDaggerAngle0);
x144_lockDaggerAngle1 = zeus::degToRad(x144_lockDaggerAngle1);