Call all necessary MVE functions when initializing robot movies to prevent crashes if a robot movie is the first one the program plays

This commit is contained in:
zicodxx 2012-03-28 09:53:24 +02:00
parent 2b7bb2bddc
commit 7d823c593d
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20120328
--------
main/movie.c: Call all necessary MVE functions when initializing robot movies to prevent crashes if a robot movie is the first one the program plays
20120324
--------
arch/ogl/gr.c, arch/sdl/gr.c, ui/menubar.c: Draw the editor menubar properly - by drawing in response to EVENT_WINDOW_DRAW and initialising the screen canvas properly. The latter fixes a lot of other editor drawing issues as well

View file

@ -492,6 +492,10 @@ int InitRobotMovie(char *filename)
con_printf(CON_DEBUG, "RoboFile=%s\n", filename);
MVE_memCallbacks(MPlayAlloc, MPlayFree);
MVE_ioCallbacks(FileRead);
MVE_sfCallbacks(MovieShowFrame);
MVE_palCallbacks(MovieSetPalette);
MVE_sndInit(-1); //tell movies to play no sound for robots
RoboFile = PHYSFSRWOPS_openRead(filename);