Mercurial > hg > ristipolku
diff game/Piece.java @ 30:60a4579a79df dev-0_1
Moar work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Feb 2011 22:45:53 +0200 |
parents | 26adc2827983 |
children | e480579cc460 |
line wrap: on
line diff
--- a/game/Piece.java Tue Feb 01 22:38:42 2011 +0200 +++ b/game/Piece.java Wed Feb 02 22:45:53 2011 +0200 @@ -81,7 +81,7 @@ public int getConnection(int in) { - return connections[in]; + return connections[(in + (currRotation * 2)) % 8]; } public void rotate(boolean dir) @@ -120,6 +120,7 @@ public void setActiveConnection(int index) { active[index] = true; + active[connections[index]] = true; activeChanged = true; }