fixed some clang warnings
remove chat string from code
This commit is contained in:
parent
1b1ae9ea91
commit
25504279d9
10 changed files with 25 additions and 27 deletions
|
|
@ -156,7 +156,7 @@ public:
|
|||
m_codeSize = 0;
|
||||
}
|
||||
|
||||
int InternalEncode (char *fileName, byte *header, int headerSize, byte *buffer, int bufferSize)
|
||||
int InternalEncode (const char *fileName, byte *header, int headerSize, byte *buffer, int bufferSize)
|
||||
{
|
||||
int i, bit, length, node, strPtr, lastMatchLength, codeBufferPtr, bufferPtr = 0;
|
||||
byte codeBuffer[17], mask;
|
||||
|
|
@ -257,7 +257,7 @@ public:
|
|||
return m_codeSize;
|
||||
}
|
||||
|
||||
int InternalDecode (char *fileName, int headerSize, byte *buffer, int bufferSize)
|
||||
int InternalDecode (const char *fileName, int headerSize, byte *buffer, int bufferSize)
|
||||
{
|
||||
int i, j, k, node, bit;
|
||||
unsigned int flags;
|
||||
|
|
@ -327,14 +327,14 @@ public:
|
|||
}
|
||||
|
||||
// external decoder
|
||||
static int Uncompress (char *fileName, int headerSize, byte *buffer, int bufferSize)
|
||||
static int Uncompress (const char *fileName, int headerSize, byte *buffer, int bufferSize)
|
||||
{
|
||||
static Compressor compressor = Compressor ();
|
||||
return compressor.InternalDecode (fileName, headerSize, buffer, bufferSize);
|
||||
}
|
||||
|
||||
// external encoder
|
||||
static int Compress(char *fileName, byte *header, int headerSize, byte *buffer, int bufferSize)
|
||||
static int Compress(const char *fileName, byte *header, int headerSize, byte *buffer, int bufferSize)
|
||||
{
|
||||
static Compressor compressor = Compressor ();
|
||||
return compressor.InternalEncode (fileName, header, headerSize, buffer, bufferSize);
|
||||
|
|
|
|||
|
|
@ -1596,7 +1596,7 @@ extern int GetTeam (edict_t *ent);
|
|||
extern float GetShootingConeDeviation (edict_t *ent, Vector *position);
|
||||
extern float GetWaveLength (const char *fileName);
|
||||
|
||||
extern bool TryFileOpen (char *fileName);
|
||||
extern bool TryFileOpen (const char *fileName);
|
||||
extern bool IsDedicatedServer (void);
|
||||
extern bool IsVisible (const Vector &origin, edict_t *ent);
|
||||
extern bool IsAlive (edict_t *ent);
|
||||
|
|
@ -1611,7 +1611,7 @@ extern const char *GetMapName (void);
|
|||
extern const char *GetWaypointDir (void);
|
||||
extern const char *GetModName (void);
|
||||
extern const char *GetField (const char *string, int fieldId, bool endLine = false);
|
||||
extern char *FormatBuffer (char *format, ...);
|
||||
extern const char *FormatBuffer (const char *format, ...);
|
||||
|
||||
extern uint16 GenerateBuildNumber (void);
|
||||
extern Vector GetEntityOrigin (edict_t *ent);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,9 @@
|
|||
#include <math.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if defined (PLATFORM_WIN32)
|
||||
#pragma warning (disable : 4100 4189 4239 4996 4244 383 473 981)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Title: Utility Classes Header
|
||||
|
|
|
|||
|
|
@ -75,7 +75,9 @@ typedef int BOOL;
|
|||
#endif
|
||||
|
||||
// In case this ever changes
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926
|
||||
#endif
|
||||
|
||||
//
|
||||
// Conversion among the three types of "entity", including identity-conversions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue