mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 22:01:41 +00:00
- make stuff compile again
This commit is contained in:
parent
7ed8d3b3e2
commit
54329bd87b
5 changed files with 11 additions and 7 deletions
|
@ -106,6 +106,7 @@ void G_AddViewAngle (int yaw, bool mouse = false);
|
|||
class FBaseCVar;
|
||||
FBaseCVar* G_GetUserCVar(int playernum, const char* cvarname);
|
||||
|
||||
class DIntermissionController;
|
||||
void RunIntermission(DIntermissionController* intermissionScreen, DObject* statusScreen, std::function<void(bool)> completionf);
|
||||
|
||||
extern const AActor *SendItemUse, *SendItemDrop;
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
#include "p_effect.h"
|
||||
#include "stringtable.h"
|
||||
#include "c_buttons.h"
|
||||
#include "screenjob.h"
|
||||
|
||||
#include "gi.h"
|
||||
|
||||
|
@ -830,7 +831,7 @@ static wbstartstruct_t staticWmInfo;
|
|||
|
||||
DIntermissionController* FLevelLocals::CreateIntermission()
|
||||
{
|
||||
DIntermissionController* controller;
|
||||
DIntermissionController* controller = nullptr;
|
||||
cluster_info_t *nextcluster;
|
||||
cluster_info_t *thiscluster;
|
||||
|
||||
|
@ -997,7 +998,8 @@ void G_DoCompleted (void)
|
|||
}
|
||||
|
||||
// todo: create end of level screenjob
|
||||
DObject* statusScreen = nullptr, *intermissionScreen = nullptr;
|
||||
DObject* statusScreen = nullptr;
|
||||
DIntermissionController* intermissionScreen = nullptr;
|
||||
if (playinter)
|
||||
{
|
||||
// [RH] If you ever get a statistics driver operational, adapt this.
|
||||
|
@ -1008,8 +1010,7 @@ void G_DoCompleted (void)
|
|||
}
|
||||
bool endgame = intermissionScreen && intermissionScreen->mEndGame;
|
||||
intermissionScreen = primaryLevel->CreateIntermission();
|
||||
RunIntermission(intermissionScreen, statusScreen, [=](bool) { if (!endgame) primaryLevel->WorldDone(); }
|
||||
)
|
||||
RunIntermission(intermissionScreen, statusScreen, [=](bool) { if (!endgame) primaryLevel->WorldDone(); });
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "gstrings.h"
|
||||
#include "gi.h"
|
||||
#include "screenjob.h"
|
||||
#include "d_event.h"
|
||||
|
||||
|
||||
static void ReplaceIntermission(FName intname,FIntermissionDescriptor *desc)
|
||||
|
@ -910,14 +911,14 @@ DIntermissionController* F_StartFinale (const char *music, int musicorder, int c
|
|||
desc->mActions.Push(wiper);
|
||||
}
|
||||
|
||||
return F_StartIntermission(desc, true, ending? FSTATE_EndingGame : FSTATE_ChangingLevel);
|
||||
return F_StartIntermission(desc, true);
|
||||
}
|
||||
else if (ending)
|
||||
{
|
||||
FIntermissionDescriptor **pdesc = IntermissionDescriptors.CheckKey(endsequence);
|
||||
if (pdesc != NULL)
|
||||
{
|
||||
return F_StartIntermission(*pdesc, false, ending? FSTATE_EndingGame : FSTATE_ChangingLevel);
|
||||
return F_StartIntermission(*pdesc, false);
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
#include "actorinlines.h"
|
||||
#include "v_draw.h"
|
||||
#include "doommenu.h"
|
||||
#include "g_game.h"
|
||||
|
||||
static FRandom pr_randomspeech("RandomSpeech");
|
||||
|
||||
|
|
|
@ -1645,7 +1645,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||
PARAM_NAME(seq);
|
||||
PARAM_INT(state);
|
||||
F_StartIntermission(seq, (uint8_t)state);
|
||||
G_StartSlideshow(self, seq);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue