forked from valve/halflife-sdk
pm_shared: fix linking with client.dll, add const where it needs to be again
This commit is contained in:
parent
5cf05e3134
commit
9e271427b8
3 changed files with 14 additions and 12 deletions
|
@ -187,9 +187,9 @@ struct playermove_s
|
|||
const char *(*PM_Info_ValueForKey) ( const char *s, const char *key );
|
||||
void (*PM_Particle)( float *origin, int color, float life, int zpos, int zvel);
|
||||
int (*PM_TestPlayerPosition) (float *pos, pmtrace_t *ptrace );
|
||||
void (*Con_NPrintf)( int idx, char *fmt, ... );
|
||||
void (*Con_DPrintf)( char *fmt, ... );
|
||||
void (*Con_Printf)( char *fmt, ... );
|
||||
void (*Con_NPrintf)( int idx, const char *fmt, ... );
|
||||
void (*Con_DPrintf)( const char *fmt, ... );
|
||||
void (*Con_Printf)( const char *fmt, ... );
|
||||
double (*Sys_FloatTime)( void );
|
||||
void (*PM_StuckTouch)( int hitent, pmtrace_t *ptraceresult );
|
||||
int (*PM_PointContents) (float *p, int *truecontents /*filled in if this is non-null*/ );
|
||||
|
@ -203,8 +203,8 @@ struct playermove_s
|
|||
void (*PM_GetModelBounds)( struct model_s *mod, float *mins, float *maxs );
|
||||
void *(*PM_HullForBsp)( physent_t *pe, float *offset );
|
||||
float (*PM_TraceModel)( physent_t *pEnt, float *start, float *end, trace_t *trace );
|
||||
int (*COM_FileSize)(char *filename);
|
||||
byte *(*COM_LoadFile) (char *path, int usehunk, int *pLength);
|
||||
int (*COM_FileSize)(const char *filename);
|
||||
byte *(*COM_LoadFile) (const char *path, int usehunk, int *pLength);
|
||||
void (*COM_FreeFile) ( void *buffer );
|
||||
char *(*memfgets)( byte *pMemFile, int fileSize, int *pFilePos, char *pBuffer, int bufferSize );
|
||||
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
|
||||
#pragma warning(disable : 4244)
|
||||
|
||||
#ifndef CLIENT_DLL
|
||||
vec3_t vec3_origin = {0,0,0};
|
||||
#endif
|
||||
int nanmask = 255<<23;
|
||||
|
||||
float anglemod(float a)
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
|
||||
#ifdef CLIENT_DLL
|
||||
// Spectator Mode
|
||||
#include "..\common\hltv.h"
|
||||
float vecNewViewAngles[3];
|
||||
float vecNewViewOrigin[3];
|
||||
int iHasNewViewAngles;
|
||||
int iHasNewViewOrigin;
|
||||
int iIsSpectator;
|
||||
#include "../common/hltv.h"
|
||||
extern float vecNewViewAngles[3];
|
||||
extern float vecNewViewOrigin[3];
|
||||
extern int iHasNewViewAngles;
|
||||
extern int iHasNewViewOrigin;
|
||||
extern int iIsSpectator;
|
||||
unsigned int uiDirectorFlags;
|
||||
|
||||
int iJumpSpectator;
|
||||
|
@ -238,7 +238,7 @@ int PM_FindSimilarTexture(char chTextureType,char *pszTextureName)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void PM_ProcessMaterials(char *pszFilename)
|
||||
void PM_ProcessMaterials(const char *pszFilename)
|
||||
{
|
||||
char buffer[512];
|
||||
int i, j;
|
||||
|
|
Loading…
Reference in a new issue