From 79136f6f87338609bca07b4794f8f6f59e85e4cf Mon Sep 17 00:00:00 2001 From: LittlePlanetCD Date: Thu, 21 Mar 2024 06:16:55 -0500 Subject: [PATCH] fix ProcessParallaxAutoScroll being missing. --- RSDKv3/Scene.cpp | 7 +++++++ RSDKv3/Scene.hpp | 1 + 2 files changed, 8 insertions(+) diff --git a/RSDKv3/Scene.cpp b/RSDKv3/Scene.cpp index 9435e1a4..fb8af8fe 100644 --- a/RSDKv3/Scene.cpp +++ b/RSDKv3/Scene.cpp @@ -268,6 +268,7 @@ void ProcessStage(void) // Update ProcessObjects(); + ProcessParallaxAutoScroll(); if (cameraTarget > -1) { if (cameraEnabled == 1) { @@ -338,6 +339,12 @@ void ProcessStage(void) Engine.frameCount++; } +void ProcessParallaxAutoScroll() +{ + for (int i = 0; i < hParallax.entryCount; ++i) hParallax.scrollPos[i] += hParallax.scrollSpeed[i]; + for (int i = 0; i < vParallax.entryCount; ++i) vParallax.scrollPos[i] += vParallax.scrollSpeed[i]; +} + void LoadStageFiles(void) { StopAllSfx(); diff --git a/RSDKv3/Scene.hpp b/RSDKv3/Scene.hpp index ca675d32..ecb35bb9 100644 --- a/RSDKv3/Scene.hpp +++ b/RSDKv3/Scene.hpp @@ -201,6 +201,7 @@ extern bool drawStageGFXHQ; void InitFirstStage(); void ProcessStage(); +void ProcessParallaxAutoScroll(); void ResetBackgroundSettings(); inline void ResetCurrentStageFolder() { strcpy(currentStageFolder, ""); }