mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes accessories getting endlessly offset into oblivion after repeated attachment (#90512)
## About The Pull Request So a lot of accessories when applied to an outfit shrink and offset themselves. A recent `pixel_x/y`>`pixel_w/z` transition pr seems to have adjusted the offset used to instead use `pixel_w/z`, but didn't actually adjust the *resetting* part to use `pixel_w/z` as well. This caused the offsets to slowly accumulate, further and further offsetting the accessory. We fix this by adding two lines resetting our `pixel_w/z` offset. We don't remove or rename the `pixel_x/y` part, because that is still needed to randomly offset our position when dropped, and we don't use `pixel_w/z` for that as of writing. ## Why It's Good For The Game Fixes #90492. ## Changelog 🆑 fix: Fixed accessories getting slowly but surely offset further down-right each time you attached them to an outfit. /🆑
This commit is contained in:
@@ -143,6 +143,9 @@
|
||||
|
||||
if(minimize_when_attached)
|
||||
transform *= 2
|
||||
// Reset our applied offset
|
||||
pixel_w = 0
|
||||
pixel_z = 0
|
||||
// just randomize position
|
||||
pixel_x = rand(4, -4)
|
||||
pixel_y = rand(4, -4)
|
||||
|
||||
Reference in New Issue
Block a user