summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-02 12:13:09 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-02 12:13:09 -0800
commit4b802d905f813b65f32deac3b87d06c96486f123 (patch)
tree3f30948f3c9f2bd9c27b4e0cc611aa213eb7a453 /src/game.c
parent8b90c04dc452ca3c424ddcfb646f19f70911138c (diff)
game: remove redundant reset_virus() call
This looks like a harmless copy paste bug in 55b7b49, but it's pointless to do twice.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index a7b9c78..b992368 100644
--- a/src/game.c
+++ b/src/game.c
@@ -648,6 +648,7 @@ static ix2_search_status_t virus_search(void *cb_context, ix2_object_t *ix2_obje
(void) virus_node_new(&(stage_conf_t){ .stage = entity->any.node, .replace = 1, .name = "adult-virus", .active = 1, .alpha = 1.f }, &search->game->sars->projection_x, &entity->any.model_x);
sfx_play(sfx.adult_infected);
search->game->state = GAME_STATE_OVER;
+
return IX2_SEARCH_STOP_HIT;
case ENTITY_TYPE_MASK: /* TODO: virus contaminates mask? */
@@ -828,8 +829,6 @@ static ix2_search_status_t adult_search(void *cb_context, ix2_object_t *ix2_obje
return IX2_SEARCH_MORE_MISS;
if (game->adult->masked) {
- reset_virus(&entity->virus);
-
if (!--game->adult->masked)
(void) adult_node_new(&(stage_conf_t){ .stage = game->adult->entity.node, .replace = 1, .name = "adult-masked", .active = 1, .alpha = 1.f }, &game->sars->projection_x, &game->adult->entity.model_x);
flash_entity(game, &game->adult->entity, 4);
© All Rights Reserved