From c8ad76e8718ac0005b2e2f412c0b22ae4890e471 Mon Sep 17 00:00:00 2001 From: Zocker1999NET Date: Sun, 3 Jul 2016 21:36:45 +0200 Subject: [PATCH] Colours Spielername Abfrage Debug 2 --- Colours.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Colours.java b/Colours.java index 0b26752..748645a 100644 --- a/Colours.java +++ b/Colours.java @@ -102,7 +102,7 @@ public class Colours extends World implements ButtonEvent { color[x] = sw; pn[x]=getName(x,"Schwarz"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; possw = false; } @@ -111,7 +111,7 @@ public class Colours extends World implements ButtonEvent { color[x] = bl; pn[x]=getName(x,"Blau"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; posbl = false; } @@ -120,7 +120,7 @@ public class Colours extends World implements ButtonEvent { color[x] = gr; pn[x]=getName(x,"GrĂ¼n"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; posgr = false; } @@ -129,7 +129,7 @@ public class Colours extends World implements ButtonEvent { color[x] = rt; pn[x]=getName(x,"Rot"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; posrt = false; } @@ -138,7 +138,7 @@ public class Colours extends World implements ButtonEvent { color [x] = gb; pn[x]=getName(x,"Gelb"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; posgb = false; } @@ -147,7 +147,7 @@ public class Colours extends World implements ButtonEvent { color [x] = li; pn[x]=getName(x,"Lila"); - if(pn[x] != "") { + if(pn[x].length <= 0) { x+=1; posli = false; }