Skip to content

Commit b350ebd

Browse files
committed
Removed duplicate code.
1 parent 296bef6 commit b350ebd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/renderer/webgl/pipelines/MultiPipeline.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -903,19 +903,16 @@ var MultiPipeline = new Class({
903903
// Undo the camera scroll
904904
spriteMatrix.e = srcX;
905905
spriteMatrix.f = srcY;
906-
907-
// Multiply by the Sprite matrix, store result in calcMatrix
908-
camMatrix.multiply(spriteMatrix, calcMatrix);
909906
}
910907
else
911908
{
912909
spriteMatrix.e -= camera.scrollX * scrollFactorX;
913910
spriteMatrix.f -= camera.scrollY * scrollFactorY;
914-
915-
// Multiply by the Sprite matrix, store result in calcMatrix
916-
camMatrix.multiply(spriteMatrix, calcMatrix);
917911
}
918912

913+
// Multiply by the Sprite matrix, store result in calcMatrix
914+
camMatrix.multiply(spriteMatrix, calcMatrix);
915+
919916
var tx0 = calcMatrix.getX(x, y);
920917
var ty0 = calcMatrix.getY(x, y);
921918

0 commit comments

Comments
 (0)