From f41f5d3a6e4b464cafcf86bce75e54dfb74709ee Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 26 Jun 2025 11:50:07 +0200 Subject: [PATCH] don't use vectorised addition in the parameter; it's not necessary --- src/game/tetromino/placing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/tetromino/placing.c b/src/game/tetromino/placing.c index c623a5e..57cb7d5 100644 --- a/src/game/tetromino/placing.c +++ b/src/game/tetromino/placing.c @@ -117,7 +117,7 @@ void place_update(struct gamedata* gdat, int movdat) { // update X axis tmp = !!(movdat & MOVR) - !!(movdat & MOVL); - gdat->pdat.sel[VX] += (tmp && !shape_intersects(gdat->rows, id, gdat->pdat.sel + (i8vec2){tmp, 0})) * tmp; + gdat->pdat.sel[VX] += (tmp && !shape_intersects(gdat->rows, id, (i8vec2){gdat->pdat.sel[VX] + tmp, gdat->pdat.sel[VY]})) * tmp; // update roll tmp = id ^ (((!!(movdat & MOVRR) - !!(movdat & MOVRL)) * 8 + id) & 31);