Apply fixes from gravgun branch

This commit is contained in:
mittorn 2017-02-01 14:55:40 +00:00
parent a9f2549c57
commit 80593d29bd
6 changed files with 12 additions and 6 deletions

View File

@ -130,7 +130,7 @@ int CHudMOTD::MsgFunc_MOTD( const char *pszName, int iSize, void *pbuf )
BEGIN_READ( pbuf, iSize );
int is_finished = READ_BYTE();
strncat( m_szMOTD, READ_STRING(), sizeof(m_szMOTD) );
strncat( m_szMOTD, READ_STRING(), sizeof(m_szMOTD) - 1 );
if( is_finished )
{

View File

@ -288,7 +288,7 @@ Only produces random numbers to match the server ones.
*/
Vector CBaseEntity::FireBulletsPlayer ( ULONG cShots, Vector vecSrc, Vector vecDirShooting, Vector vecSpread, float flDistance, int iBulletType, int iTracerFreq, int iDamage, entvars_t *pevAttacker, int shared_rand )
{
float x, y, z;
float x = 0, y = 0, z;
for( ULONG iShot = 1; iShot <= cShots; iShot++ )
{

View File

@ -310,7 +310,7 @@ int CHudMessage::Draw( float fTime )
{
int i, drawn;
client_textmessage_t *pMessage;
float endTime;
float endTime = 0;
drawn = 0;

View File

@ -74,7 +74,7 @@ void CBaseMonster::MonsterInitDead( void )
// Setup health counters, etc.
BecomeDead();
SetThink( &CorpseFallThink );
SetThink( &CBaseMonster::CorpseFallThink );
pev->nextthink = gpGlobals->time + 0.5;
}

View File

@ -15,7 +15,7 @@
#include "weapons.h"
#include "soundent.h"
#include "monsters.h"
#include "..\engine\shake.h"
#include "../engine/shake.h"
#include "decals.h"
#include "gamerules.h"

View File

@ -93,6 +93,12 @@ typedef struct client_textmessage_s
const char *pMessage;
} client_textmessage_t;
#if __MSC_VER == 1200
#define ulonglong_t __int64
#else
#define ulonglong_t unsigned long long
#endif
typedef struct hud_player_info_s
{
char *name;
@ -106,7 +112,7 @@ typedef struct hud_player_info_s
short topcolor;
short bottomcolor;
unsigned long long m_nSteamID;
ulonglong_t m_nSteamID;
} hud_player_info_t;
typedef struct cl_enginefuncs_s