Beim Neuspawnen eines Gegners alle Flags zurücksetzen.
authorWintermute <wintermute@hannover.ccc.de>
Thu, 17 Oct 2013 21:25:43 +0000 (23:25 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Thu, 17 Oct 2013 21:25:43 +0000 (23:25 +0200)
badge/jumpnrun/enemies.c

index 51738de..407f091 100644 (file)
@@ -123,7 +123,7 @@ void jumpnrun_process_enemy(jumpnrun_enemy                   *self,
             (fixed_point_lt(self->spawn_pos.x, FIXED_POINT(state->left + BADGE_DISPLAY_WIDTH + spawn_margin, 0)) &&
              fixed_point_gt(self->spawn_pos.x, FIXED_POINT(state->left + BADGE_DISPLAY_WIDTH, 0)))) {
     // enemy unspawned, available and in spawn zone.
-    self->flags               |= JUMPNRUN_ENEMY_SPAWNED | JUMPNRUN_ENEMY_UNAVAILABLE;
+    self->flags                = JUMPNRUN_ENEMY_SPAWNED | JUMPNRUN_ENEMY_UNAVAILABLE;
     self->base.current_box     = rectangle_new(self->spawn_pos, self->type->extent);
     self->base.inertia         = self->type->spawn_inertia;
     self->base.anim_frame      = 0;
This page took 0.024052 seconds and 4 git commands to generate.