From 53ee605bd46afb7030bffe30ad262175f6dcc44e Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 3 Mar 2018 07:41:51 +0000 Subject: [PATCH] Pause sound when observing entity activation. --- src/world/world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/world.c b/src/world/world.c index 32b4749..2232f06 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -379,8 +379,8 @@ static void doWorldInProgress(void) if (--world.observationTimer == FPS) { world.entityToTrack = world.entitiesToObserve[0]; - world.state = WS_OBSERVING; + pauseSound(1); } } } @@ -484,8 +484,8 @@ static void doWorldObserving(void) memset(world.entitiesToObserve, 0, sizeof(Entity*) * MAX_ENTS_TO_OBSERVE); world.entityToTrack = (Entity*)world.bob; world.state = WS_IN_PROGRESS; - observationIndex = 0; + pauseSound(0); } } }