mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
don't use vectorised addition in the parameter; it's not necessary
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user