fixed -1 not working

This commit is contained in:
Chiss 2014-07-26 21:03:50 +10:00
parent 802415be8f
commit 3f4e4b6607

View File

@ -1202,6 +1202,7 @@ public class Bridge extends TeamGame implements OreObsfucation
else else
_tournamentKills.put(killerTeam, _tournamentKills.get(killerTeam) + 1); _tournamentKills.put(killerTeam, _tournamentKills.get(killerTeam) + 1);
} }
//self kill
else if (_bridgesDown) else if (_bridgesDown)
{ {
if (!_tournamentKills.containsKey(killedTeam)) if (!_tournamentKills.containsKey(killedTeam))
@ -1210,6 +1211,14 @@ public class Bridge extends TeamGame implements OreObsfucation
_tournamentKills.put(killedTeam, _tournamentKills.get(killedTeam) - 1); _tournamentKills.put(killedTeam, _tournamentKills.get(killedTeam) - 1);
} }
} }
//self kill
else if (_bridgesDown)
{
if (!_tournamentKills.containsKey(killedTeam))
_tournamentKills.put(killedTeam, -1);
else
_tournamentKills.put(killedTeam, _tournamentKills.get(killedTeam) - 1);
}
} }
@Override @Override