fog onerror
This commit is contained in:
1 parent
962cc005c6
commit
7d9c111479
1 file changed
+3
@@ -331,6 +331,9 @@ core.prototype.init = function (coreData, callback) {
|
||||
core.material.ground.src = "project/images/ground.png";
|
||||
|
||||
core.animateFrame.weather.fog = new Image();
|
||||
core.animateFrame.weather.fog.onerror = function () {
|
||||
core.animateFrame.weather.fog = null;
|
||||
}
|
||||
core.animateFrame.weather.fog.src = "project/images/fog.png";
|
||||
|
||||
core.bigmap.tempCanvas = document.createElement('canvas').getContext('2d');
|
||||
|
||||
Reference in new issue
Block a user