Skip to content

Commit

Permalink
* Stop sounds on death.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed May 16, 2009
1 parent b363a1c commit 39f5b03
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,9 +1692,17 @@ void player_destroyed (void)
if (player_isFlag(PLAYER_DESTROYED))
return;

gl_cameraStatic( player->solid->pos.x, player->solid->pos.y );
/* Mark as destroyed. */
player_setFlag(PLAYER_DESTROYED);

/* Stop camera. */
gl_cameraStatic( player->solid->pos.x, player->solid->pos.y );

/* Set timer for death menu. */
player_timer = 5.;

/* Stop sounds. */
player_stopSound();
}


Expand Down

0 comments on commit 39f5b03

Please sign in to comment.