Don't let scores drop below 0

This commit is contained in:
Neale Pickett 2014-02-06 20:12:56 -07:00
parent 909a11f9fa
commit 4da3624942
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"short_name": "__MSG_appShortName__",
"description": "__MSG_appDesc__",
"author": "Neale Pickett <neale@woozle.org>",
"version": "6.2",
"version": "6.2.1",
"app": {
"background": {
"scripts": ["res/background.js"]

View File

@ -271,7 +271,7 @@ function score(team, points) {
var te = e("score-" + team);
var ts = Number(te.innerHTML);
ts += points;
ts = Math.max(ts + points, 0);
te.innerHTML = ts;
}