From 88656cf11cec1e47052e304fc02d4ac7e517e1ec Mon Sep 17 00:00:00 2001 From: Michael Thompson Date: Thu, 6 Jul 2017 13:02:00 -0700 Subject: [PATCH] Updated flags to allow for individual pause commands --- Java/src/XPlaneConnect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Java/src/XPlaneConnect.java b/Java/src/XPlaneConnect.java index a212278..b6496aa 100644 --- a/Java/src/XPlaneConnect.java +++ b/Java/src/XPlaneConnect.java @@ -223,9 +223,9 @@ public class XPlaneConnect implements AutoCloseable */ public void pauseSim(int pause) throws IOException { - if(pause < 0 || pause > 2) + if(pause < 0 || (pause > 2 && pause < 100) || (pause > 119 && pause < 200) || pause > 219) { - throw new IllegalArgumentException("pause must be a value in the range [0, 2]."); + throw new IllegalArgumentException("pause must be a value in the range [0, 2], [100, 119], or [200, 219]."); } // S I M U LEN VAL