Browse Source

Try fix build again.

halloween
Night Owl 8 years ago
parent
commit
d217780789
  1. 3
      dlls/client.cpp
  2. 2
      dlls/util.cpp

3
dlls/client.cpp

@ -38,6 +38,7 @@ @@ -38,6 +38,7 @@
#include "weaponinfo.h"
#include "usercmd.h"
#include "netadr.h"
#include "pm_shared.h"
extern DLL_GLOBAL ULONG g_ulModelIndexPlayer;
extern DLL_GLOBAL BOOL g_fGameOver;
@ -550,7 +551,7 @@ void ClientCommand( edict_t *pEntity ) @@ -550,7 +551,7 @@ void ClientCommand( edict_t *pEntity )
{
GetClassPtr( (CBasePlayer *)pev )->SelectLastItem();
}
else if( FStrEq( pcmd, "spectate" ) // clients wants to become a spectator
else if( FStrEq( pcmd, "spectate" ) ) // clients wants to become a spectator
{
// always allow proxies to become a spectator
if( ( pev->flags & FL_PROXY ) || allow_spectators.value )

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( *data );
functionName = NAME_FOR_FUNCTION( (unsigned int)(size_t)*data );
if( functionName )
BufferField( pname, strlen( functionName ) + 1, functionName );
else

Loading…
Cancel
Save