Commit 659c4465 authored by bogdanbear's avatar bogdanbear

use getIsPlaying()

parent 37d383eb
...@@ -34,9 +34,6 @@ public class LocalGameLoop extends Thread{ ...@@ -34,9 +34,6 @@ public class LocalGameLoop extends Thread{
private Relayer followedRelayer; private Relayer followedRelayer;
private boolean isPlaying=false; private boolean isPlaying=false;
private boolean shouldRPC=false;
public Relayer getFollowedRelayer() { public Relayer getFollowedRelayer() {
try { try {
...@@ -121,7 +118,7 @@ public class LocalGameLoop extends Thread{ ...@@ -121,7 +118,7 @@ public class LocalGameLoop extends Thread{
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
if (LocalGameLoop.getInstance().isPlaying) { if (LocalGameLoop.getInstance().getIsPlaying()) {
//System.out.println("Broken Connection verifier!"); //System.out.println("Broken Connection verifier!");
if (getNetworkConnection().isBroken()) if (getNetworkConnection().isBroken())
GameStarter.initiateBrokenConnectionMeasures(); GameStarter.initiateBrokenConnectionMeasures();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment