mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Restore global time on Save/Restore.
Same as https://github.com/ValveSoftware/halflife/issues/3065.
This commit is contained in:
parent
4ba54bdcdc
commit
a07acb3d14
@ -255,6 +255,8 @@ void DispatchSave( edict_t *pent, SAVERESTOREDATA *pSaveData )
|
|||||||
{
|
{
|
||||||
ENTITYTABLE *pTable = &pSaveData->pTable[pSaveData->currentIndex];
|
ENTITYTABLE *pTable = &pSaveData->pTable[pSaveData->currentIndex];
|
||||||
|
|
||||||
|
gpGlobals->time = pSaveData->time;
|
||||||
|
|
||||||
if( pTable->pent != pent )
|
if( pTable->pent != pent )
|
||||||
ALERT( at_error, "ENTITY TABLE OR INDEX IS WRONG!!!!\n" );
|
ALERT( at_error, "ENTITY TABLE OR INDEX IS WRONG!!!!\n" );
|
||||||
|
|
||||||
@ -307,6 +309,9 @@ int DispatchRestore( edict_t *pent, SAVERESTOREDATA *pSaveData, int globalEntity
|
|||||||
Vector oldOffset;
|
Vector oldOffset;
|
||||||
|
|
||||||
CRestore restoreHelper( pSaveData );
|
CRestore restoreHelper( pSaveData );
|
||||||
|
|
||||||
|
gpGlobals->time = pSaveData->time;
|
||||||
|
|
||||||
if( globalEntity )
|
if( globalEntity )
|
||||||
{
|
{
|
||||||
CRestore tmpRestore( pSaveData );
|
CRestore tmpRestore( pSaveData );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user