update dead flag for every tanks.js frame

This commit is contained in:
Alyssa Milburn 2014-07-30 01:09:22 +02:00
parent 11448eccb8
commit ea5f37b945
1 changed files with 1 additions and 3 deletions

View File

@ -54,9 +54,7 @@ function Tank(ctx, width, height, color, sensors) {
this.fire = 5;
}
this.led = flags & 2;
if (flags & 4) {
this.dead++;
}
this.dead = flags & 4;
this.sensor_state = sensor_state;
}