diff --git a/d2x-rebirth/libmve/mvelib.h b/d2x-rebirth/libmve/mvelib.h index 44dd7ab58..47e813b22 100644 --- a/d2x-rebirth/libmve/mvelib.h +++ b/d2x-rebirth/libmve/mvelib.h @@ -99,6 +99,7 @@ struct MVESTREAM ~MVESTREAM(); std::unique_ptr movie; void *context = nullptr; + uint8_t timer_created{}; int handle_mve_segment_endofstream(); int handle_mve_segment_endofchunk(); diff --git a/d2x-rebirth/libmve/mveplay.cpp b/d2x-rebirth/libmve/mveplay.cpp index b6ccf9580..97bce722d 100644 --- a/d2x-rebirth/libmve/mveplay.cpp +++ b/d2x-rebirth/libmve/mveplay.cpp @@ -87,7 +87,6 @@ int MVESTREAM::handle_mve_segment_endofstream() /* * timer variables */ -static int timer_created = 0; static int micro_frame_delay=0; static int timer_started=0; static struct timeval timer_expire = {0, 0}; @@ -709,7 +708,6 @@ MVE_StepStatus MVE_rmStepMovie(MVESTREAM &mve) void MVE_rmEndMovie(std::unique_ptr) { timer_stop(); - timer_created = 0; if (mve_audio_spec) { // MD2211: if using SDL_Mixer, we never reinit sound, hence never close it