From d9b13c6688313b5fb20cf66045f8e9cf19731201 Mon Sep 17 00:00:00 2001 From: Miepee Date: Wed, 7 Feb 2024 20:44:03 +0100 Subject: [PATCH] Don't make suit transition cutscene place at 0,0 --- CHANGELOG.md | 5 +++++ YAMS-LIB/Program.cs | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2569559..6f561e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +## [1.2.13] - 2024-02-07 + +### Fixed +- When receiving a suit in a Multiworld, the suit transition cutscene will not place you at a room's (0,0) coordinate anymore. + ## [1.2.12] - 2024-02-03 ### Fixed diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index 1470a66..3b06ead 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -2478,7 +2478,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te global.SuitChange = 0; if (!(collision_point((x + 8), (y + 8), oSolid, 0, 1))) global.SuitChange = 0; - if (room == rm_transition || room == rm_loading || room == itemroom) + if (room == rm_transition || room == rm_loading || room == itemroom || object_index == oControl) global.SuitChange = 0; global.SuitChangeX = x; global.SuitChangeY = y; @@ -2506,7 +2506,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te global.SuitChange = 0; if (!(collision_point((x + 8), (y + 8), oSolid, 0, 1))) global.SuitChange = 0; - if (room == rm_transition || room == rm_loading || room == itemroom) + if (room == rm_transition || room == rm_loading || room == itemroom || object_index == oControl) global.SuitChange = 0; global.SuitChangeX = x; global.SuitChangeY = y; @@ -2530,7 +2530,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te global.SuitChange = 0; if (!(collision_point((x + 8), (y + 8), oSolid, 0, 1))) global.SuitChange = 0; - if (room == rm_transition || room == rm_loading || room == itemroom) + if (room == rm_transition || room == rm_loading || room == itemroom || object_index == oControl) global.SuitChange = 0; global.SuitChangeX = x; global.SuitChangeY = y;