aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <cb24367@.open.ac.uk>2011-09-12 10:40:29 +0100
committerunknown <cb24367@.open.ac.uk>2011-09-12 10:40:29 +0100
commit188baf1e88e38e46c98b709f345969e67221d6f3 (patch)
treedb858e724384db722e05fc3011ae6b86e6afe012
parentc7a7e4634b79a7b5da8d7b53306897347d57374d (diff)
downloadpunchingbag-188baf1e88e38e46c98b709f345969e67221d6f3.tar
punchingbag-188baf1e88e38e46c98b709f345969e67221d6f3.tar.gz
Small syntax fixes.
-rw-r--r--PunchingBag/src/PunchingBag.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/PunchingBag/src/PunchingBag.java b/PunchingBag/src/PunchingBag.java
index e046842..289405e 100644
--- a/PunchingBag/src/PunchingBag.java
+++ b/PunchingBag/src/PunchingBag.java
@@ -246,7 +246,7 @@ public class PunchingBag implements Runnable {
colour)) {
doneSomething = true;
}
- if (setLEDInternal(x + (height / 2), (y - (height / 2)) + heightEx)) {
+ if (setLEDInternal(x + (height / 2), (y - (height / 2)) + heightEx, colour)) {
doneSomething = true;
}
if (heightEx < height) {
@@ -256,7 +256,7 @@ public class PunchingBag implements Runnable {
widthEx++;
}
- } while (height && width >= 0);
+ } while (height >= 0 && width >= 0);
return doneSomething;
}