mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-02 15:47:58 +03:00
Call Director.Unpause() to execute running scripts
This commit is contained in:
parent
ec3259271e
commit
77a9cd5a9a
5 changed files with 9 additions and 27 deletions
|
@ -4512,12 +4512,8 @@ void Actor::UpdateAnim
|
||||||
Com_Printf("ChangeAnim\n");
|
Com_Printf("ChangeAnim\n");
|
||||||
ChangeAnim();
|
ChangeAnim();
|
||||||
}
|
}
|
||||||
Director.iPaused--;
|
Director.Unpause();
|
||||||
if (!Director.iPaused)
|
Director.Pause();
|
||||||
{
|
|
||||||
Director.ExecuteRunning();
|
|
||||||
}
|
|
||||||
Director.iPaused++;
|
|
||||||
|
|
||||||
if (m_csSayAnim != STRING_EMPTY)
|
if (m_csSayAnim != STRING_EMPTY)
|
||||||
{
|
{
|
||||||
|
@ -5534,9 +5530,7 @@ void Actor::Think
|
||||||
|
|
||||||
m_bNeedReload = false;
|
m_bNeedReload = false;
|
||||||
mbBreakSpecialAttack = false;
|
mbBreakSpecialAttack = false;
|
||||||
Director.iPaused--;
|
Director.Unpause();
|
||||||
if (!Director.iPaused)
|
|
||||||
Director.ExecuteRunning();
|
|
||||||
|
|
||||||
//gi.DPrintf("Actor::Think 5: entnum %d, classname: %s\n", entnum, G_GetEntity(0) ? G_GetEntity(0)->getClassname() : "");
|
//gi.DPrintf("Actor::Think 5: entnum %d, classname: %s\n", entnum, G_GetEntity(0) ? G_GetEntity(0)->getClassname() : "");
|
||||||
}
|
}
|
||||||
|
@ -8234,13 +8228,9 @@ void Actor::IdleTurn
|
||||||
|
|
||||||
SafePtr<SimpleEntity> prevTurnEntity = m_pTurnEntity;
|
SafePtr<SimpleEntity> prevTurnEntity = m_pTurnEntity;
|
||||||
|
|
||||||
Director.iPaused--;
|
Director.Unpause();
|
||||||
if (!Director.iPaused)
|
|
||||||
{
|
|
||||||
Director.ExecuteRunning();
|
|
||||||
}
|
|
||||||
Unregister(STRING_TURNDONE);
|
Unregister(STRING_TURNDONE);
|
||||||
Director.iPaused++;
|
Director.Pause();
|
||||||
|
|
||||||
|
|
||||||
if (m_pTurnEntity == prevTurnEntity)
|
if (m_pTurnEntity == prevTurnEntity)
|
||||||
|
|
|
@ -545,14 +545,8 @@ void G_RunFrame( int levelTime, int frameTime )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Director.iPaused--;
|
|
||||||
g_iInThinks++;
|
g_iInThinks++;
|
||||||
|
Director.Unpause();
|
||||||
if( !Director.iPaused )
|
|
||||||
{
|
|
||||||
Director.ExecuteRunning();
|
|
||||||
}
|
|
||||||
|
|
||||||
g_iInThinks--;
|
g_iInThinks--;
|
||||||
|
|
||||||
// Process any pending events that got posted during the script code
|
// Process any pending events that got posted during the script code
|
||||||
|
|
|
@ -1218,9 +1218,7 @@ void Level::ServerSpawned(void)
|
||||||
ent->entity->Unregister(STRING_SPAWN);
|
ent->entity->Unregister(STRING_SPAWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Director.iPaused-- == 1) {
|
Director.Unpause();
|
||||||
Director.ExecuteRunning();
|
|
||||||
}
|
|
||||||
|
|
||||||
Unregister(STRING_SPAWN);
|
Unregister(STRING_SPAWN);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
===========================================================================
|
===========================================================================
|
||||||
Copyright (C) 2015 the OpenMoHAA team
|
Copyright (C) 2023 the OpenMoHAA team
|
||||||
|
|
||||||
This file is part of OpenMoHAA source code.
|
This file is part of OpenMoHAA source code.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
===========================================================================
|
===========================================================================
|
||||||
Copyright (C) 2015 the OpenMoHAA team
|
Copyright (C) 2023 the OpenMoHAA team
|
||||||
|
|
||||||
This file is part of OpenMoHAA source code.
|
This file is part of OpenMoHAA source code.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue