Skip to content

Commit

Permalink
Fix vehicles rotating camera position when entered at a nonzero angle…
Browse files Browse the repository at this point in the history
… and exited out
  • Loading branch information
RedBigz committed Nov 17, 2024
2 parents db077e7 + ecb2f58 commit 1494183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TABGVR/Patches/CameraMovementPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class CameraMovementPatch
[HarmonyTranspiler]
public static IEnumerable<CodeInstruction> LateUpdate(IEnumerable<CodeInstruction> instructions)
{
var instructionsList = instructions.ToArray();

foreach (var instruction in instructions.Select((value, i) => new { i, value }))
{
// instruction.value.opcode == OpCodes.Ldarg_0 &&
Expand Down

0 comments on commit 1494183

Please sign in to comment.