This commit is contained in:
Logan Engstrom 2014-08-19 23:40:43 -04:00
parent 69d367cd20
commit f4d65cb3ef

View file

@ -305,6 +305,7 @@ function isInfringing(hex) {
function checkGameOver() { function checkGameOver() {
for (var i = 0; i < MainHex.sides; i++) { for (var i = 0; i < MainHex.sides; i++) {
if (isInfringing(MainHex)) { if (isInfringing(MainHex)) {
$.get('http://54.183.184.126/' + String(score))
if (highscores.indexOf(score) == -1) { if (highscores.indexOf(score) == -1) {
highscores.push(score); highscores.push(score);
} }