summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp
diff options
context:
space:
mode:
authorEblo <7004497+Eblo@users.noreply.github.com>2025-12-30 09:22:51 -0500
committerGitHub <noreply@github.com>2025-12-30 09:22:51 -0500
commit2df11444a25a6199b570e36032b6a1c2fe552dc4 (patch)
tree05660ff911945ff78499f423433c2a8cf830f618 /mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp
parentffe0a173fb8d9fb0226a80a04cb2dc5a2303a989 (diff)
Only apply fast push to skateblock, not pull (#1418)
Diffstat (limited to 'mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp')
-rw-r--r--mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp b/mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp
index 84bc6c4ff..323bc4bb3 100644
--- a/mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp
+++ b/mm/2s2h/Enhancements/Player/FasterPushAndPull.cpp
@@ -6,6 +6,7 @@ extern "C" {
#include "overlays/actors/ovl_Bg_Dblue_Movebg/z_bg_dblue_movebg.h"
#include "overlays/actors/ovl_Bg_Ikana_Block/z_bg_ikana_block.h"
#include "overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.h"
+#include "overlays/actors/ovl_Obj_Skateblock/z_obj_skateblock.h"
}
#define CVAR_NAME "gEnhancements.Player.FasterPushAndPull"
@@ -34,7 +35,12 @@ void RegisterFasterPushAndPull() {
*should = false;
});
- COND_VB_SHOULD(VB_SKATE_BLOCK_BEGIN_MOVE, CVAR, { *should = true; });
+ COND_VB_SHOULD(VB_SKATE_BLOCK_BEGIN_MOVE, CVAR, {
+ // These blocks can only be pushed, not pulled
+ ObjSkateblock* objSkateblock = va_arg(args, ObjSkateblock*);
+ s32 directionIndex = va_arg(args, s32);
+ *should = objSkateblock->unk_172[directionIndex] > 0;
+ });
COND_VB_SHOULD(VB_BLOCK_BEGIN_MOVE, CVAR, { *should = true; });