shithub: sce

Download patch

ref: 45bf0c810b249354754d62ce82bcf2f08a3a2dd5
parent: 291da955bdf66cb0d92038221d362c78cfdeed0a
author: qwx <[email protected]>
date: Fri Mar 13 22:41:56 EDT 2020

drw: fix sprite offsets

this fixes all the jerkiness between rotations and frames, was wrong sign

--- a/drw.c
+++ b/drw.c
@@ -111,7 +111,7 @@
 	Rectangle r;
 
 	q = pic->p;
-	r = Rect(x - pic->dx, y - pic->dy, pic->w, pic->h);
+	r = Rect(x + pic->dx, y + pic->dy, pic->w, pic->h);
 	if(boundpic(&r, &q) < 0)
 		return;
 	Δq = pic->w - r.max.x;