mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed a couple minor bugs.
This commit is contained in:
parent
6d8d119c94
commit
a74d015d18
3 changed files with 4 additions and 10 deletions
|
@ -331,15 +331,8 @@ self.onDebugWorldLoaded = function onDebugWorldLoaded() {
|
||||||
};
|
};
|
||||||
|
|
||||||
self.onDebugWorldError = function onDebugWorldError(error) {
|
self.onDebugWorldError = function onDebugWorldError(error) {
|
||||||
if(error instanceof Aether.problems.UserCodeProblem) {
|
if(!error.isUserCodeProblem) {
|
||||||
if(!self.debugPostedErrors[error.key]) {
|
console.log("Debug Non-UserCodeError:", error.toString() + "\n" + error.stack || error.stackTrace);
|
||||||
var problem = error.serialize();
|
|
||||||
self.postMessage({type: 'user-code-problem', problem: problem});
|
|
||||||
self.debugPostedErrors[error.key] = problem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.log("Non-UserCodeError:", error.toString() + "\n" + error.stack || error.stackTrace);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -246,6 +246,7 @@ module.exports = class Mark extends CocoClass
|
||||||
size = @sprite.getAverageDimension()
|
size = @sprite.getAverageDimension()
|
||||||
size += 60 if @name is 'selection'
|
size += 60 if @name is 'selection'
|
||||||
size += 60 if @name is 'repair'
|
size += 60 if @name is 'repair'
|
||||||
|
size *= @sprite.scaleFactor
|
||||||
scale = size / {selection: 128, target: 128, repair: 320, highlight: 160}[@name]
|
scale = size / {selection: 128, target: 128, repair: 320, highlight: 160}[@name]
|
||||||
if @sprite?.thang.spriteName.search(/(dungeon|indoor).wall/i) isnt -1
|
if @sprite?.thang.spriteName.search(/(dungeon|indoor).wall/i) isnt -1
|
||||||
scale *= 2
|
scale *= 2
|
||||||
|
|
Loading…
Reference in a new issue