Skip to content

Commit

Permalink
Merge pull request #152 from InsanityBringer/nomoviefixes
Browse files Browse the repository at this point in the history
Fixes for missing movies
  • Loading branch information
JeodC authored Apr 22, 2024
2 parents c791e17 + b869ff9 commit 66ae79b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
17 changes: 3 additions & 14 deletions Descent3/Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1671,20 +1671,9 @@ void DoMissionMovie(char *movie) {
return;
#endif
if (movie && *movie) {
char *moviepath;

if (Current_mission.filename &&
!(!stricmp(Current_mission.filename, "d3.mn3") || !stricmp(Current_mission.filename, "d3_2.mn3"))) {
char mpath[_MAX_PATH];
ddio_MakePath(mpath, LocalD3Dir, "movies", movie, NULL);
PlayMovie(mpath);
} else {
moviepath = GetMultiCDPath(movie);
if (moviepath) {
strcpy(temppath, moviepath);
PlayMovie(temppath);
}
}
char mpath[_MAX_PATH];
ddio_MakePath(mpath, LocalD3Dir, "movies", movie, NULL);
PlayMovie(mpath);
}
// PlayMovie(movie);
}
Expand Down
9 changes: 9 additions & 0 deletions Descent3/mmItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,15 @@ void mmInterface::Create() {
char filename[_MAX_PATH];
ddio_MakePath(filename, Base_directory, "movies", "mainmenu", NULL);
m_movie = StartMovie(filename, true);

if (!m_movie) //[ISB] Didn't find the menu movie?
{
if (!LoadLargeBitmap("mainmenu.ogf", &m_art)) {
Error("Unable to load main menu art mainmenu.ogf.");
} else {
static_menu_background = true;
}
}
}
#endif

Expand Down

0 comments on commit 66ae79b

Please sign in to comment.