X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_1.c;h=7852eb74a0b3224e5f20303475e0f5ea1067ba89;hb=cb586ba720ddae3c6d05ba1723b5bd4d58bc98bd;hp=7b2e9c807a8387a9554692ed8a91f96d6be8a3b6;hpb=f6bcc10ce7b517f04eb5cddf01c9ec29ee729b7e;p=rocksndiamonds.git diff --git a/src/game_em/synchro_1.c b/src/game_em/synchro_1.c index 7b2e9c80..7852eb74 100644 --- a/src/game_em/synchro_1.c +++ b/src/game_em/synchro_1.c @@ -585,6 +585,7 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy) play_element_sound(x, y, SAMPLE_collect, element); lev.score += lev.diamond_score; lev.required = lev.required < 3 ? 0 : lev.required - 3; + game.snapshot.collected_item = TRUE; ply->anim = SPR_walk + anim; ply->x = x; ply->y = y; @@ -597,6 +598,7 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy) play_element_sound(x, y, SAMPLE_collect, element); lev.score += lev.emerald_score; lev.required = lev.required < 1 ? 0 : lev.required - 1; + game.snapshot.collected_item = TRUE; ply->anim = SPR_walk + anim; ply->x = x; ply->y = y; @@ -1108,6 +1110,7 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy) play_element_sound(x, y, SAMPLE_collect, element); lev.score += lev.diamond_score; lev.required = lev.required < 3 ? 0 : lev.required - 3; + game.snapshot.collected_item = TRUE; ply->anim = SPR_walk + anim; break; @@ -1118,6 +1121,7 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy) play_element_sound(x, y, SAMPLE_collect, element); lev.score += lev.emerald_score; lev.required = lev.required < 1 ? 0 : lev.required - 1; + game.snapshot.collected_item = TRUE; ply->anim = SPR_walk + anim; break;