diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/demos/proceduralTexturePhysics/Water.java | 2 | ||||
-rw-r--r-- | src/demos/util/MD2.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java index 6a52d15..ed6fe04 100644 --- a/src/demos/proceduralTexturePhysics/Water.java +++ b/src/demos/proceduralTexturePhysics/Water.java @@ -143,7 +143,7 @@ public class Water { private float dropletFrequency = 0.175f; // frequency at which droplets are drawn in water... - private int slowDelay = 15; // amount (milliseconds) to delay when running slow. + private int slowDelay = 1; // amount (milliseconds) to delay when running slow. private int skipInterval; // frames to skip simulation. private int skipCount; // frame count for skipping rendering diff --git a/src/demos/util/MD2.java b/src/demos/util/MD2.java index 25ba88f..d58b953 100644 --- a/src/demos/util/MD2.java +++ b/src/demos/util/MD2.java @@ -493,7 +493,7 @@ public class MD2 { pos += numRead; } avail = in.available(); - } while (numRead >= 0); + } while (avail > 0 && numRead >= 0); ByteBuffer buf = ByteBuffer.allocateDirect(pos); buf.put(data, 0, pos); buf.rewind(); |