Skip to content

Commit

Permalink
fix clear pipes jittering in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sk7725 committed Jul 15, 2021
1 parent d451977 commit 2c5c0bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/betamindy/world/blocks/units/ClearPipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,10 @@ public boolean update(ClearPipeBuild build){
}
Tmp.v1.trns(to * 90f, tilesize * (f - 0.5f) * build.block.size).add(build);
unit.set(Tmp.v1.x, Tmp.v1.y,to * 90f);
if(p == player) playerPipe.unit().set(Tmp.v1);/*Useful.lockCam(Tmp.v1);*/
if(playerPipe != null){
playerPipe.unit().set(Tmp.v1);
if(!headless && mobile && p == player) Core.camera.position.set(Tmp.v1);
}

if(f > 1f){
if(to < 0) to = from;
Expand Down

0 comments on commit 2c5c0bf

Please sign in to comment.