mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -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) {
|
||||
if(error instanceof Aether.problems.UserCodeProblem) {
|
||||
if(!self.debugPostedErrors[error.key]) {
|
||||
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);
|
||||
if(!error.isUserCodeProblem) {
|
||||
console.log("Debug Non-UserCodeError:", error.toString() + "\n" + error.stack || error.stackTrace);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
|
|
@ -82,7 +82,7 @@ module.exports = class God
|
|||
when 'new-debug-world'
|
||||
console.log "New Debug world!"
|
||||
when 'console-log'
|
||||
console.log "|" + @id + "'s debugger |", event.data.args...
|
||||
console.log "|" + @id + "'s debugger|", event.data.args...
|
||||
when 'debug-value-return'
|
||||
Backbone.Mediator.publish 'god:debug-value-return', event.data.serialized
|
||||
|
||||
|
|
|
@ -246,6 +246,7 @@ module.exports = class Mark extends CocoClass
|
|||
size = @sprite.getAverageDimension()
|
||||
size += 60 if @name is 'selection'
|
||||
size += 60 if @name is 'repair'
|
||||
size *= @sprite.scaleFactor
|
||||
scale = size / {selection: 128, target: 128, repair: 320, highlight: 160}[@name]
|
||||
if @sprite?.thang.spriteName.search(/(dungeon|indoor).wall/i) isnt -1
|
||||
scale *= 2
|
||||
|
|
Loading…
Reference in a new issue