From 65a37690ef6227f28c4835bb1ebe2d74704795f7 Mon Sep 17 00:00:00 2001 From: n00b Date: Mon, 14 Apr 2025 19:09:20 -0400 Subject: [PATCH] Removed offsets from SetSpriteBox --- rcbasic_runtime/rc_spritelib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/rcbasic_runtime/rc_spritelib.h b/rcbasic_runtime/rc_spritelib.h index 7c76a68..49c5133 100644 --- a/rcbasic_runtime/rc_spritelib.h +++ b/rcbasic_runtime/rc_spritelib.h @@ -650,8 +650,6 @@ void rc_setSpriteBox(int spr_id, int w, int h) b2PolygonShape* fix_shape = (b2PolygonShape*)rc_sprite[spr_id].physics.shape; fix_shape->SetAsBox(w/2, h/2); - rc_sprite[spr_id].physics.offset_x = w/2; - rc_sprite[spr_id].physics.offset_y = h/2; rc_sprite[spr_id].physics.box_width = w; rc_sprite[spr_id].physics.box_height = h;