Skip to content

Commit

Permalink
Fix typo in 42fde76
Browse files Browse the repository at this point in the history
  • Loading branch information
chaserli committed Nov 12, 2024
1 parent 542c343 commit 42f488b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion YRpp
Submodule YRpp updated 3 files
+6 −6 Helpers/CompileTime.h
+30 −39 Matrix3D.h
+42 −48 YRMathVector.h
2 changes: 1 addition & 1 deletion src/Ext/Rules/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void RulesExt::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
DigitalDisplayTypeClass::LoadFromINIList(pINI);
RadTypeClass::LoadFromINIList(pINI);
ShieldTypeClass::LoadFromINIList(pINI);
LaserTrailTypeClass::LoadFromINIList(&CCINIClass::INI_Art.get());
LaserTrailTypeClass::LoadFromINIList(&CCINIClass::INI_Art);
AttachEffectTypeClass::LoadFromINIList(pINI);

Data->LoadBeforeTypeData(pThis, pINI);
Expand Down
6 changes: 3 additions & 3 deletions src/Ext/TechnoType/Hooks.MatrixOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ DEFINE_HOOK(0x4CF68D, FlyLocomotionClass_DrawMatrix_OnAirport, 0x5)
if (pThis->GetHeight() <= 0)
{
REF_STACK(Matrix3D, mat, STACK_OFFSET(0x38, -0x30));
auto slope_idx = MapClass::Instance->TryGetCellAt(pThis->Location)->SlopeIndex;
auto slope_idx = MapClass::Instance->GetCellAt(pThis->Location)->SlopeIndex;
mat = Matrix3D::VoxelRampMatrix[slope_idx] * mat;
float ars = pThis->AngleRotatedSideways;
float arf = pThis->AngleRotatedForwards;
Expand All @@ -147,7 +147,7 @@ Matrix3D* __stdcall JumpjetLocomotionClass_Draw_Matrix(ILocomotion* iloco, Matri
// no more TiltCrashJumpjet, do that above svp
bool const onGround = pThis->State == JumpjetLocomotionClass::State::Grounded;
// Man, what can I say, you don't want to stick your rotor into the ground
auto slope_idx = MapClass::Instance->TryGetCellAt(linked->Location)->SlopeIndex;
auto slope_idx = MapClass::Instance->GetCellAt(linked->Location)->SlopeIndex;
*ret = Matrix3D::VoxelRampMatrix[onGround ? slope_idx : 0];
auto curf = pThis->LocomotionFacing.Current();
ret->RotateZ((float)curf.GetRadian<32>());
Expand Down Expand Up @@ -196,7 +196,7 @@ Matrix3D* __stdcall TeleportLocomotionClass_Draw_Matrix(ILocomotion* iloco, Matr
__assume(iloco != nullptr);
auto const pThis = static_cast<LocomotionClass*>(iloco);
auto linked = pThis->LinkedTo;
auto slope_idx = MapClass::Instance->TryGetCellAt(linked->Location)->SlopeIndex;
auto slope_idx = MapClass::Instance->GetCellAt(linked->Location)->SlopeIndex;

if (pIndex && pIndex->Is_Valid_Key())
*(int*)(pIndex) = slope_idx + (*(int*)(pIndex) << 6);
Expand Down

0 comments on commit 42f488b

Please sign in to comment.