mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-17 17:00:29 +02:00
Added WSA code from CC, Map Selection Works, temp disabled keyboard input for score screen.
This commit is contained in:
+4
-7
@@ -107,8 +107,6 @@ extern short StreamLowImpact;
|
||||
#endif
|
||||
char const * Map_Selection(void)
|
||||
{
|
||||
return NULL;
|
||||
#if (0)//PG
|
||||
static char scenarioname[_MAX_FNAME+_MAX_EXT];
|
||||
|
||||
#ifdef FIXIT_ANTS
|
||||
@@ -147,14 +145,14 @@ char const * Map_Selection(void)
|
||||
void const * country1 = MFCD::Retrieve("TONEY10.AUD");
|
||||
|
||||
#ifdef WIN32
|
||||
GraphicBufferClass *pseudoseenbuff = new GraphicBufferClass(320, 200, (void*)NULL);
|
||||
GraphicBufferClass* pseudoseenbuff = &VisiblePage; // GraphicBufferClass(320, 200, (void*)NULL);
|
||||
#endif
|
||||
|
||||
// fixed oldvolume = Options.ScoreVolume;
|
||||
// Options.Set_Score_Volume(fixed(4, 10));
|
||||
Theme.Queue_Song(THEME_MAP);
|
||||
|
||||
void *anim = Open_Animation(_filename, NULL, 0L, (WSAOpenType)(WSA_OPEN_FROM_MEM | WSA_OPEN_TO_PAGE), mappalette);
|
||||
void *anim = Open_Animation(_filename, NULL, 0L, (WSAOpenType)(WSA_OPEN_FROM_MEM | WSA_OPEN_TO_PAGE), (unsigned char *)mappalette.Get_Data());
|
||||
|
||||
Keyboard->Clear();
|
||||
SeenPage.Clear();
|
||||
@@ -174,7 +172,7 @@ char const * Map_Selection(void)
|
||||
|
||||
|
||||
int frame = 1;
|
||||
StreamLowImpact = true;
|
||||
//StreamLowImpact = true;
|
||||
#ifdef WIN32
|
||||
Play_Sample(appear1, 255, Options.Normalize_Volume(170));
|
||||
#else
|
||||
@@ -221,7 +219,7 @@ char const * Map_Selection(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
StreamLowImpact = false;
|
||||
//StreamLowImpact = false;
|
||||
Call_Back();
|
||||
Close_Animation(anim);
|
||||
Show_Mouse();
|
||||
@@ -317,7 +315,6 @@ char const * Map_Selection(void)
|
||||
// Scen.ScenVar = (ScenarioVarType)selection;
|
||||
//Mono_Printf("Chose variant %d \n", selection);
|
||||
return(scenarioname);
|
||||
#endif
|
||||
}
|
||||
|
||||
int Mouse_Over_Spot(int house, int scenario)
|
||||
|
||||
Reference in New Issue
Block a user