From fc7b2b7945633ada57f416a6f96b69d09a35d4fa Mon Sep 17 00:00:00 2001 From: Antoine Date: Thu, 17 Jun 2021 01:20:04 +0200 Subject: [PATCH] correction timer update --- src/gameplay/match/match.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/gameplay/match/match.java b/src/gameplay/match/match.java index 9e0e2fe..59e8f8e 100644 --- a/src/gameplay/match/match.java +++ b/src/gameplay/match/match.java @@ -127,14 +127,8 @@ public class match { height = Integer.parseInt((String) settings.get("height")); width = Integer.parseInt((String) settings.get("width")); - - } catch (FileNotFoundException e) { + } catch (ParseException | IOException e) { e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } catch (ParseException e) { - e.printStackTrace(); - } } @@ -363,7 +357,8 @@ public class match { // Tracking update engine.cameraTracking(); - timer = 99 - frameCount/99; + timer = 99 - frameCount/60; + timeStamp2 = System.currentTimeMillis(); while(timeStamp2-timeStamp1<(1000/60)) { timeStamp2 = System.currentTimeMillis();