going ot bed

This commit is contained in:
Peter Cottle 2013-01-21 21:49:43 -08:00
parent ab5a752691
commit e0bdf54d96
4 changed files with 14 additions and 3 deletions

View file

@ -133,7 +133,8 @@ LevelArbiter.prototype.getLevel = function(id) {
LevelArbiter.prototype.getNextLevel = function(id) {
if (!this.levelMap[id]) {
throw new Error('that level doesnt exist!');
console.warn('that level doesnt exist!!!');
return null;
}
// meh, this method could be better. It's a tradeoff between