never seen that

This commit is contained in:
delta1805 2017-09-24 22:45:36 +02:00
parent c68897c5d1
commit a2405abab4
1 changed files with 27 additions and 31 deletions

View File

@ -148,10 +148,6 @@ public class Spiel {
}
if (weiter) {
double tordis = s.p.getDistance(nichtballteam.torwart.p);
if(tordis <10){
tor();
}else{
tordis = s.p.getDistance(nichtballteam.torwart.p);
Spieler t = null;
boolean ss = false;
for (Spieler m : ballteam.spieler) {
@ -182,7 +178,7 @@ public class Spiel {
t.takeBall(s);
}
}
}
}
break;
}
@ -191,11 +187,11 @@ public class Spiel {
public void torPhase(){
if(ballBesitz){
if(b.s.p.getDistance(auswärtsteam.torwart.p)<20){
if(b.s.p.getDistance(auswärtsteam.torwart.p)<5){
tor();
}
}else{
if(b.s.p.getDistance(heimteam.torwart.p)<20){
if(b.s.p.getDistance(heimteam.torwart.p)<5){
tor();
}
}