Browse Source

Fix mistakes with saverestore after merge.

halloween
Night Owl 7 years ago
parent
commit
4d1dc131b9
  1. 2
      dlls/util.cpp
  2. 4
      engine/eiface.h

2
dlls/util.cpp

@ -1890,7 +1890,7 @@ void CSave::WriteFunction( const char *pname, void **data, int count ) @@ -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

4
engine/eiface.h

@ -172,8 +172,8 @@ typedef struct enginefuncs_s @@ -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

Loading…
Cancel
Save