Advertisement
Guest User

Untitled

a guest
Feb 26th, 2018
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. diff --git a/d2x-rebirth/main/movie.cpp b/d2x-rebirth/main/movie.cpp
  2. index 928c0f8d0..6e92e0db5 100644
  3. --- a/d2x-rebirth/main/movie.cpp
  4. +++ b/d2x-rebirth/main/movie.cpp
  5. @@ -677,6 +677,7 @@ static void draw_subtitles(int frame_num)
  6. static int init_movie(const char *movielib, char resolution, int required, loaded_movie_t &movie)
  7. {
  8. snprintf(&movie.filename[0], movie.filename.size(), "%s-%c.mvl", movielib, resolution);
  9. +#if 0
  10. auto r = PHYSFSX_contfile_init(&movie.filename[0], 0);
  11. if (!r)
  12. {
  13. @@ -685,6 +686,11 @@ static int init_movie(const char *movielib, char resolution, int required, loade
  14. movie.filename[0] = 0;
  15. }
  16. return r;
  17. +#else
  18. + (void)required;
  19. + movie.filename[0] = 0;
  20. + return 0;
  21. +#endif
  22. }
  23.  
  24. static void init_movie(const char *movielib, int required, loaded_movie_t &movie)
  25. diff --git a/similar/main/titles.cpp b/similar/main/titles.cpp
  26. index eb09e9a1d..d6359db30 100644
  27. --- a/similar/main/titles.cpp
  28. +++ b/similar/main/titles.cpp
  29. @@ -374,7 +374,11 @@ struct briefing_screen {
  30.  
  31. static grs_subcanvas_ptr create_spinning_robot_sub_canvas(grs_canvas &canvas)
  32. {
  33. +#if defined(DXX_BUILD_DESCENT_I)
  34. return gr_create_sub_canvas(canvas, rescale_x(canvas.cv_bitmap, 138), rescale_y(canvas.cv_bitmap, 55), rescale_x(canvas.cv_bitmap, 166), rescale_y(canvas.cv_bitmap, 138));
  35. +#else
  36. + return gr_create_sub_canvas(canvas, rescale_x(canvas.cv_bitmap, 137), rescale_y(canvas.cv_bitmap, 54), rescale_x(canvas.cv_bitmap, 165), rescale_y(canvas.cv_bitmap, 137));
  37. +#endif
  38. }
  39.  
  40. static void get_message_name(const char *&message, array<char, 32> &result, const char *const trailer)
  41. @@ -768,7 +772,20 @@ static int briefing_process_char(grs_canvas &canvas, briefing *const br)
  42. ;
  43. #endif
  44. } else {
  45. -#if defined(DXX_BUILD_DESCENT_II)
  46. + static int robotmap[26] = {
  47. + 24,
  48. + 25,
  49. + -1,
  50. + 26, 27, 28, 29, 30, 51, 33, 36, 49, 37, 38, 50, 39, 61, 40,
  51. + 43, 42, 44,
  52. + -1,
  53. + 47, 48,
  54. + 41,
  55. + -1
  56. + };
  57. + init_spinning_robot(canvas, *br);
  58. + br->robot_num = robotmap[*br->message++ - 'A'];
  59. +#if 0 && defined(DXX_BUILD_DESCENT_II)
  60. char spinRobotName[]="rba.mve",kludge; // matt don't change this!
  61.  
  62. kludge=*br->message++;
  63. @@ -1558,11 +1575,13 @@ void do_briefing_screens(const d_fname &filename, int level_num)
  64. return;
  65. }
  66.  
  67. +#if 0
  68. #if defined(DXX_BUILD_DESCENT_II)
  69. if (!(EMULATING_D1 || is_SHAREWARE || is_MAC_SHARE || is_D2_OEM || !PLAYING_BUILTIN_MISSION))
  70. songs_stop_all();
  71. else
  72. #endif
  73. +#endif
  74. {
  75. if ((songs_is_playing() != SONG_BRIEFING) && (songs_is_playing() != SONG_ENDGAME))
  76. songs_play_song( SONG_BRIEFING, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement