Skip to content

Commit b652043

Browse files
committed
Fix shrunk objects underlay size
Closes #57
1 parent 9704f6d commit b652043

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/game/object.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,10 @@ void object_draw(GameDrawInfo* draw_info)
595595
for (idx = 0; idx < 4; idx++) {
596596
art_id = obj_arrayfield_uint32_get(obj_node->obj, OBJ_F_UNDERLAY, idx);
597597
if (art_id != TIG_ART_ID_INVALID) {
598-
sub_443620(obj_flags, 100, (int)loc_x, (int)loc_y, art_id, &eye_candy_rect);
598+
// FIX: Ignore shrunk objects so they match 100% scale. This makes the reaction
599+
// underlay perfectly match the hover underlay size (the hover underlay is not
600+
// scaled and is unaffected by shrinking).
601+
sub_443620(obj_flags & ~OF_SHRUNK, 100, (int)loc_x, (int)loc_y, art_id, &eye_candy_rect);
599602

600603
rect_node = *draw_info->rects;
601604
while (rect_node != NULL) {

0 commit comments

Comments
 (0)