Light meter

This commit is contained in:
2014-06-14 20:49:48 -07:00
parent 68fd939426
commit be95660e95

View File

@@ -1139,7 +1139,8 @@ GameState.prototype.update_player_lightmeter = function() {
lightValue = lv; lightValue = lv;
} }
}, this) }, this)
this.lightbar_crop.width = (this.lightbar_image.width * lightValue); this.lightbar_crop.width = Math.min(this.lightbar_image.width,
(this.lightbar_image.width * lightValue));
this.lightbar.crop(this.lightbar_crop); this.lightbar.crop(this.lightbar_crop);
} }