mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-09 07:21:04 +02:00
Fix wall clipping during stamp rotation
This commit is contained in:
@@ -385,8 +385,8 @@ void GameSave::Transform(matrix2d transform, vector2d translate)
|
|||||||
particles[i].vx = vel.x;
|
particles[i].vx = vel.x;
|
||||||
particles[i].vy = vel.y;
|
particles[i].vy = vel.y;
|
||||||
}
|
}
|
||||||
for (y=0; y<blockWidth; y++)
|
for (y=0; y<blockHeight; y++)
|
||||||
for (x=0; x<blockHeight; x++)
|
for (x=0; x<blockWidth; x++)
|
||||||
{
|
{
|
||||||
pos = v2d_new(x*CELL+CELL*0.4f, y*CELL+CELL*0.4f);
|
pos = v2d_new(x*CELL+CELL*0.4f, y*CELL+CELL*0.4f);
|
||||||
pos = v2d_add(m2d_multiply_v2d(transform,pos),translate);
|
pos = v2d_add(m2d_multiply_v2d(transform,pos),translate);
|
||||||
|
Reference in New Issue
Block a user