From 43b1954263dff900caa048f5927a4fd2c77b9b3c Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Thu, 27 Jul 2023 00:54:03 +0100 Subject: [PATCH] Bug fix * Fixed whitespace calculation for non-wardrobe elements * Fixed an issue with floats when expecting an int --- game/scripts/utility/image_crop.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scripts/utility/image_crop.rpy b/game/scripts/utility/image_crop.rpy index 694341c2..2b27c5b3 100644 --- a/game/scripts/utility/image_crop.rpy +++ b/game/scripts/utility/image_crop.rpy @@ -25,10 +25,10 @@ init python: size = surf.get_size() box = tuple(surf.get_bounding_rect()) - if size[0] != 1010: + if "/clothes/" in path and size[0] != 1010: ratio = size[0] / 1010 box = tuple(v/ratio for v in box) - whitespace_dict[path] = box + whitespace_dict[path] = tuple(map(int, box)) return box def crop_image_zoom(path, xsize, ysize, grayscale=False):