Fix wall clipping during stamp rotation

This commit is contained in:
Simon Robertshaw 2012-10-01 12:02:04 +01:00
parent 163fbde8af
commit 0801497ed2

View File

@ -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);