mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- fixed: The cast call could time out on overlong death sequences and get stuck.
- fixed: The cast call code should treat a waiting state in the death sequence as its end. SVN r2951 (trunk)
This commit is contained in:
parent
8ebb555343
commit
6538bc457b
1 changed files with 3 additions and 2 deletions
|
@ -478,7 +478,8 @@ int DIntermissionScreenCast::Ticker ()
|
|||
if (--casttics > 0 && caststate != NULL)
|
||||
return 0; // not time to change state yet
|
||||
|
||||
if (caststate == NULL || caststate->GetTics() == -1 || caststate->GetNextState() == NULL)
|
||||
if (caststate == NULL || caststate->GetTics() == -1 || caststate->GetNextState() == NULL ||
|
||||
caststate->GetNextState() == caststate)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -494,7 +495,7 @@ int DIntermissionScreenCast::Ticker ()
|
|||
castframes++;
|
||||
}
|
||||
|
||||
if (castframes == 12)
|
||||
if (castframes == 12 && !castdeath)
|
||||
{
|
||||
// go into attack frame
|
||||
castattacking = true;
|
||||
|
|
Loading…
Reference in a new issue