Fix fountain bug with more than 10 touches reported.

Change-Id: Ie4ddefbcbe6407fb7ffae2c6e2440fec0b974cfb
This commit is contained in:
Jason Sams
2010-11-09 14:20:34 -08:00
parent 1c41517124
commit 641b0628cd

View File

@@ -53,7 +53,7 @@ public class FountainRS {
boolean holdingColor[] = new boolean[10];
public void newTouchPosition(float x, float y, float pressure, int id) {
if (id > holdingColor.length) {
if (id >= holdingColor.length) {
return;
}
int rate = (int)(pressure * pressure * 500.f);