@@ -368,7 +368,7 @@ static bool intAddMessageForm(bool playCurrent)
368
368
return true ;
369
369
}
370
370
371
- /* Add the 3D world view for the particular message (only research nmessages now) */
371
+ /* Add the 3D world view for the particular message */
372
372
bool intAddMessageView (MESSAGE *psMessage)
373
373
{
374
374
bool Animate = true ;
@@ -476,20 +476,23 @@ bool intAddMessageView(MESSAGE *psMessage)
476
476
return false ;
477
477
}
478
478
479
- /* Add the Flic box */
480
- sFormInit = W_FORMINIT ();
481
- sFormInit .formID = IDINTMAP_MSGVIEW;
482
- sFormInit .id = IDINTMAP_FLICVIEW;
483
- sFormInit .style = WFORM_PLAIN;
484
- sFormInit .x = INTMAP_FLICX;
485
- sFormInit .y = INTMAP_FLICY;
486
- sFormInit .width = INTMAP_FLICWIDTH;
487
- sFormInit .height = INTMAP_FLICHEIGHT;
488
- sFormInit .pDisplay = intDisplayFLICView;
489
- sFormInit .pUserData = psMessage;
490
- if (!widgAddForm (psWScreen, &sFormInit ))
479
+ /* Add the Flic box if videos are installed */
480
+ if (PHYSFS_exists (" sequences/devastation.ogg" ))
491
481
{
492
- return false ;
482
+ sFormInit = W_FORMINIT ();
483
+ sFormInit .formID = IDINTMAP_MSGVIEW;
484
+ sFormInit .id = IDINTMAP_FLICVIEW;
485
+ sFormInit .style = WFORM_PLAIN;
486
+ sFormInit .x = INTMAP_FLICX;
487
+ sFormInit .y = INTMAP_FLICY;
488
+ sFormInit .width = INTMAP_FLICWIDTH;
489
+ sFormInit .height = INTMAP_FLICHEIGHT;
490
+ sFormInit .pDisplay = intDisplayFLICView;
491
+ sFormInit .pUserData = psMessage;
492
+ if (!widgAddForm (psWScreen, &sFormInit ))
493
+ {
494
+ return false ;
495
+ }
493
496
}
494
497
495
498
/* Add the text box*/
@@ -738,15 +741,18 @@ void intIntelButtonPressed(bool proxMsg, UDWORD id)
738
741
739
742
if (psMessage->pViewData )
740
743
{
741
- // If its a video sequence then play it anyway
744
+ // If it's a video sequence then play it anyway
742
745
if (psMessage->pViewData ->type == VIEW_RPL)
743
746
{
744
747
if (psMessage->pViewData )
745
748
{
746
749
intAddMessageView (psMessage);
747
750
}
748
-
749
- StartMessageSequences (psMessage, true );
751
+ // only attempt to show videos if they are installed
752
+ if (PHYSFS_exists (" sequences/devastation.ogg" ))
753
+ {
754
+ StartMessageSequences (psMessage, true );
755
+ }
750
756
}
751
757
else if (psMessage->pViewData ->type == VIEW_RES)
752
758
{
@@ -1223,8 +1229,12 @@ void displayImmediateMessage(MESSAGE *psMessage)
1223
1229
This has to be changed to support a script calling a message in the intelligence screen
1224
1230
*/
1225
1231
1226
- psCurrentMsg = psMessage;
1227
- StartMessageSequences (psMessage, true );
1232
+ // only attempt to show videos if they are installed
1233
+ if (PHYSFS_exists (" sequences/devastation.ogg" ))
1234
+ {
1235
+ psCurrentMsg = psMessage;
1236
+ StartMessageSequences (psMessage, true );
1237
+ }
1228
1238
// remind the player that the message can be seen again from
1229
1239
// the intelligence screen
1230
1240
addConsoleMessage (_ (" New Intelligence Report" ), CENTRE_JUSTIFY, SYSTEM_MESSAGE);
0 commit comments