Removed console.log
This commit is contained in:
parent
34d87516cf
commit
f9d22c31f6
|
@ -173,7 +173,6 @@ module TS.SpaceTac.UI {
|
|||
this.targetting.setTarget(Target.newFromShip(ship));
|
||||
}
|
||||
} else {
|
||||
console.log(num);
|
||||
this.action_bar.keyActionPressed(num - 1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,9 @@ module TS.SpaceTac.UI {
|
|||
// Indicator that the log is being played continuously
|
||||
private playing = false
|
||||
|
||||
// Indicator to debug the processed logs
|
||||
private debug = false
|
||||
|
||||
// Time at which the last action was applied
|
||||
private last_action: number
|
||||
|
||||
|
@ -184,7 +187,9 @@ module TS.SpaceTac.UI {
|
|||
* Process a single event
|
||||
*/
|
||||
processBattleEvent(event: BaseBattleEvent): number {
|
||||
console.log("Battle event", event);
|
||||
if (this.debug) {
|
||||
console.log("Battle event", event);
|
||||
}
|
||||
|
||||
let durations = this.forwarding.map(subscriber => subscriber(event));
|
||||
let t = (new Date()).getTime()
|
||||
|
|
Loading…
Reference in a new issue