don't use vectorised addition in the parameter; it's not necessary

This commit is contained in:
2025-06-26 11:50:07 +02:00
parent 0f4c9411b0
commit f41f5d3a6e

View File

@@ -117,7 +117,7 @@ void place_update(struct gamedata* gdat, int movdat) {
// update X axis // update X axis
tmp = !!(movdat & MOVR) - !!(movdat & MOVL); 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 // update roll
tmp = id ^ (((!!(movdat & MOVRR) - !!(movdat & MOVRL)) * 8 + id) & 31); tmp = id ^ (((!!(movdat & MOVRR) - !!(movdat & MOVRL)) * 8 + id) & 31);