mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Merge of Marshall/master into BL/master.
Merge of SDL code from feature branch into BL/master.
This commit is contained in:
@@ -398,7 +398,7 @@ bool Start_Scenario(char * name, bool briefing)
|
||||
if (Scen.BriefMovie != VQ_NONE) {
|
||||
sprintf(buffer, "%s.VQA", VQName[Scen.BriefMovie]);
|
||||
}
|
||||
if (Session.Type == GAME_NORMAL && Scen.BriefMovie == VQ_NONE || !CCFileClass(buffer).Is_Available()) {
|
||||
if (Session.Type == GAME_NORMAL && ( Scen.BriefMovie == VQ_NONE || !CCFileClass(buffer).Is_Available() ) ) {
|
||||
/*
|
||||
** Make sure the mouse is visible before showing the restatement.
|
||||
*/
|
||||
@@ -642,10 +642,15 @@ void Fill_In_Data(void)
|
||||
*/
|
||||
if (!Debug_Map) {
|
||||
Map.SidebarClass::Activate(1);
|
||||
// if (Session.Type == GAME_NORMAL) {
|
||||
if (Session.Type == GAME_NORMAL) {
|
||||
Scen.Views[0] = Scen.Views[1] = Scen.Views[2] = Scen.Views[3] = Scen.Waypoint[WAYPT_HOME];
|
||||
Map.Set_Tactical_Position(Cell_Coord((Scen.Waypoint[WAYPT_HOME] - (MAP_CELL_W * 4 * RESFACTOR)) - (5*RESFACTOR)));
|
||||
// }
|
||||
}
|
||||
if (Session.Type == GAME_SKIRMISH) {
|
||||
CELL PlayerCenterCell = XY_Cell( Coord_XCell(PlayerPtr->Center), Coord_YCell( PlayerPtr->Center) );
|
||||
Scen.Views[0] = Scen.Views[1] = Scen.Views[2] = Scen.Views[3] = PlayerCenterCell;
|
||||
Map.Set_Tactical_Position( Cell_Coord( (PlayerCenterCell - (MAP_CELL_W * 4 * RESFACTOR) ) - (5 * RESFACTOR) ) );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -915,11 +920,6 @@ void Do_Win(void)
|
||||
Session.GameName[0] = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
** Determine a cosmetic center point for the text.
|
||||
*/
|
||||
int x = Map.TacPixelX + (Lepton_To_Pixel(Map.TacLeptonWidth)/2);
|
||||
|
||||
/*
|
||||
** Hack section. If it's allied scenario 10, variation A, then skip the
|
||||
** score and map selection, don't increment scenario, and set it to
|
||||
@@ -938,7 +938,7 @@ void Do_Win(void)
|
||||
Map.Flag_To_Redraw (true);
|
||||
Map.Render();
|
||||
#ifdef WIN32
|
||||
Fancy_Text_Print(TXT_SCENARIO_WON, x, 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
Fancy_Text_Print(TXT_SCENARIO_WON, (SeenBuff.Get_Width() / 2), 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
#else
|
||||
Fancy_Text_Print(TXT_MISSION, x, 90*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
Fancy_Text_Print(TXT_HACKHACK, x, 110*RESFACTOR, &ColorRemaps[PCOLOR_RED], TBLACK, TPF_CENTER|TPF_VCR|TPF_USE_GRAD_PAL|TPF_DROPSHADOW);
|
||||
|
||||
Reference in New Issue
Block a user