# HG changeset patch # User Matti Hamalainen # Date 1488450237 -7200 # Node ID 7bf508d363bda3d5610fb103e19dfcbdec768d00 # Parent bb2ee580bd2ee7f1cd88d944e568546a673e0f16 Cleanups. diff -r bb2ee580bd2e -r 7bf508d363bd game/G.java --- a/game/G.java Wed Mar 01 14:24:28 2017 +0200 +++ b/game/G.java Thu Mar 02 12:23:57 2017 +0200 @@ -1,3 +1,7 @@ +/* + * Ristipolku Game Engine + * (C) Copyright 2011 Matti 'ccr' Hämäläinen + */ package game; import java.awt.*; @@ -13,9 +17,10 @@ import game.*; import javax.sound.sampled.*; + public class G { - public static final String version = "0.85"; + public static final String version = "0.86"; public static final int numFonts = 4; public static Font fonts[]; diff -r bb2ee580bd2e -r 7bf508d363bd game/Piece.java --- a/game/Piece.java Wed Mar 01 14:24:28 2017 +0200 +++ b/game/Piece.java Thu Mar 02 12:23:57 2017 +0200 @@ -98,6 +98,7 @@ { for (int i = 0; i < numConnections; i++) states[i] = false; + stateChanged = true; } @@ -172,7 +173,8 @@ float ox = 0, oy = 0; float step = dim / 10; - switch (index) { + switch (index) + { // Normal line starting and ending points case 0: ox = 3.0f; oy = 0.4f; break; case 1: ox = 7.0f; oy = 0.4f; break; @@ -293,7 +295,8 @@ g.rotate(currAngle, x + dim / 2.0f, y + dim / 2.0f); // Color piece by type - switch (type) { + switch (type) + { case LOCKED: g.setPaint(new Color(0.3f, 0.8f, 0.3f, 0.35f)); break; case ACTIVE: g.setPaint(new Color(0.9f, 0.3f, 0.3f, 0.35f)); break; case START: g.setPaint(new Color(1.0f, 0.6f, 0.0f, 0.95f)); break;