2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00

Fix mistakes with saverestore after merge.

This commit is contained in:
Night Owl 2017-07-08 20:06:00 +05:00
parent f575e78a9b
commit 4d1dc131b9
2 changed files with 3 additions and 3 deletions

View File

@ -1890,7 +1890,7 @@ void CSave::WriteFunction( const char *pname, void **data, int count )
{
const char *functionName;
functionName = NAME_FOR_FUNCTION( (unsigned int)(size_t)*data );
functionName = NAME_FOR_FUNCTION( (size_t)*data );
if( functionName )
BufferField( pname, strlen( functionName ) + 1, functionName );
else

View File

@ -172,8 +172,8 @@ typedef struct enginefuncs_s
int (*pfnRegUserMsg)( const char *pszName, int iSize );
void (*pfnAnimationAutomove)( const edict_t* pEdict, float flTime );
void (*pfnGetBonePosition)( const edict_t* pEdict, int iBone, float *rgflOrigin, float *rgflAngles );
unsigned int (*pfnFunctionFromName)( const char *pName );
const char *(*pfnNameForFunction)( unsigned int function );
size_t (*pfnFunctionFromName)( const char *pName );
const char *(*pfnNameForFunction)( size_t function );
void (*pfnClientPrintf)( edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg ); // JOHN: engine callbacks so game DLL can print messages to individual clients
void (*pfnServerPrint)( const char *szMsg );
const char *(*pfnCmd_Args)( void ); // these 3 added