mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- handle G_StartSlideshow
This commit is contained in:
parent
de1b89707d
commit
d4ee52f606
3 changed files with 6 additions and 6 deletions
|
@ -2859,17 +2859,17 @@ bool G_CheckDemoStatus (void)
|
|||
return false;
|
||||
}
|
||||
|
||||
void G_StartSlideshow(FName whichone)
|
||||
void G_StartSlideshow(FLevelLocals *Level, FName whichone)
|
||||
{
|
||||
gameaction = ga_slideshow;
|
||||
SelectedSlideshow = whichone == NAME_None ? level.info->slideshow : whichone;
|
||||
SelectedSlideshow = whichone == NAME_None ? Level->info->slideshow : whichone;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(FLevelLocals, StartSlideshow)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||
PARAM_NAME(whichone);
|
||||
G_StartSlideshow(whichone);
|
||||
G_StartSlideshow(self, whichone);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ void G_Ticker (void);
|
|||
bool G_Responder (event_t* ev);
|
||||
|
||||
void G_ScreenShot (char *filename);
|
||||
void G_StartSlideshow(FName whichone);
|
||||
void G_StartSlideshow(FLevelLocals *Level, FName whichone);
|
||||
|
||||
FString G_BuildSaveName (const char *prefix, int slot);
|
||||
|
||||
|
|
|
@ -6619,7 +6619,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
|||
return ScriptCall(activator, argCount, args);
|
||||
|
||||
case ACSF_StartSlideshow:
|
||||
G_StartSlideshow(FName(Level->Behaviors.LookupString(args[0])));
|
||||
G_StartSlideshow(Level, FName(Level->Behaviors.LookupString(args[0])));
|
||||
break;
|
||||
|
||||
case ACSF_GetSectorHealth:
|
||||
|
|
Loading…
Reference in a new issue