From 24a2a946b35279605e645349bd6b82e9e60aac88 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Wed, 14 Aug 2019 23:35:34 -0400
Subject: [PATCH] Fix textures in jar.

---
 SwitchNode.java |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/SwitchNode.java b/SwitchNode.java
index c6e4dff..7189ebc 100644
--- a/SwitchNode.java
+++ b/SwitchNode.java
@@ -41,7 +41,7 @@
             switchobject.count = 1; // hide
     }
     
-    transient boolean restarted;
+    //transient boolean restarted;
     transient int countspeed;
 
     transient boolean toggleneutral;
@@ -59,7 +59,7 @@
         }
         if (live && Globals.isLIVE() && display.DrawMode() == display.SHADOW)
         {
-            if (countspeed == 0)
+            if (countspeed <= 0)
             {
                 countspeed = speed;
                 
@@ -92,12 +92,18 @@
                 
             }
             else
-                countspeed--;
+            {
+                if (CameraPane.FAST)
+                    countspeed -= CameraPane.STEP;
+                else
+                    countspeed--;
+            }
         }
         
         if (bRep == null)
         {
-            bRep = (BoundaryRep) Grafreed.clone(switchobject.get(0).bRep);
+            // The switch mesh will be used to interpolate poaes (maybe).
+            bRep = (BoundaryRep)Grafreed.clone(switchobject.get(0).bRep);
         }
         
         if (CameraPane.SUPPORT && display.DrawMode() == display.SHADOW)

--
Gitblit v1.6.2