Skip to content

Commit 7ea8bca

Browse files
author
liply
committed
change checking hue
1 parent 742e4a2 commit 7ea8bca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/rpg_managers/ImageManager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ ImageManager.loadEmptyBitmap = function() {
9696
};
9797

9898
ImageManager.loadNormalBitmap = function(path, hue) {
99-
hue = hue || 0;
10099
var key = this._generateCacheKey(path, hue);
101100
var bitmap = this._imageCache.get(key);
102101
if (!bitmap) {
@@ -280,13 +279,12 @@ ImageManager.requestTitle2 = function(filename, hue) {
280279

281280
ImageManager.requestBitmap = function(folder, filename, hue, smooth) {
282281
var path = folder + encodeURIComponent(filename) + '.png';
283-
var bitmap = ImageManager.requestNormalBitmap(path, hue);
282+
var bitmap = ImageManager.requestNormalBitmap(path, hue || 0);
284283
bitmap.smooth = smooth;
285284
return bitmap;
286285
};
287286

288287
ImageManager.requestNormalBitmap = function(path, hue){
289-
hue = hue || 0;
290288
var key = this._generateCacheKey(path, hue);
291289
var bitmap = this._imageCache.get(key);
292290
if(!bitmap){

0 commit comments

Comments
 (0)