mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- made intermissions work as screenjob.
This commit is contained in:
parent
082daccd2d
commit
aabe59c533
2 changed files with 6 additions and 5 deletions
|
@ -938,7 +938,7 @@ bool DIntermissionController::Responder (FInputEvent *ev)
|
|||
return false;
|
||||
}
|
||||
|
||||
void DIntermissionController::Ticker ()
|
||||
bool DIntermissionController::Ticker ()
|
||||
{
|
||||
if (mAdvance)
|
||||
{
|
||||
|
@ -953,8 +953,10 @@ void DIntermissionController::Ticker ()
|
|||
mAdvance = false;
|
||||
if (!NextPage())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void DIntermissionController::Drawer ()
|
||||
|
@ -1031,14 +1033,13 @@ DEFINE_ACTION_FUNCTION(DIntermissionController, Responder)
|
|||
DEFINE_ACTION_FUNCTION(DIntermissionController, Ticker)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(DIntermissionController);
|
||||
self->Ticker();
|
||||
ACTION_RETURN_BOOL(true);
|
||||
ACTION_RETURN_BOOL(self->Ticker());
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(DIntermissionController, Drawer)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(DIntermissionController);
|
||||
self->Ticker();
|
||||
self->Drawer ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -303,7 +303,7 @@ public:
|
|||
|
||||
DIntermissionController(FIntermissionDescriptor *mDesc = NULL, bool mDeleteDesc = false);
|
||||
bool Responder (FInputEvent *ev);
|
||||
void Ticker ();
|
||||
bool Ticker ();
|
||||
void Drawer ();
|
||||
void OnDestroy() override;
|
||||
bool NextPage();
|
||||
|
|
Loading…
Reference in a new issue