Skip to content

Commit

Permalink
Fixed simulation toggle camera
Browse files Browse the repository at this point in the history
Once the fly controls were adjusted the camera was wrong going to and from simulation.
  • Loading branch information
NetherNarwhal committed Dec 16, 2018
1 parent 6f2670c commit dd628a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DelvEdit/src/com/interrupt/dungeoneer/editor/EditorFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public void render() {
camY = Game.instance.player.y;

rotX = Game.instance.player.rot + 3.14159265f;
rotY = -(Game.instance.player.yrot - 18.9f);
rotY = -Game.instance.player.yrot;

Audio.stopLoopingSounds();

Expand Down Expand Up @@ -2375,9 +2375,9 @@ public void testLevel() {

Game.instance.player.x = camera.position.x;
Game.instance.player.y = camera.position.z;
Game.instance.player.z = camera.position.y - 0.4f;
Game.instance.player.z = camera.position.y - 0.5f;
Game.instance.player.rot = rotX - 3.14159265f;
Game.instance.player.yrot = -rotY + 18.9f;
Game.instance.player.yrot = -rotY;
Game.isDebugMode = true;
}

Expand Down

0 comments on commit dd628a1

Please sign in to comment.