mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Apply fixes from gravgun branch
This commit is contained in:
parent
a9f2549c57
commit
80593d29bd
@ -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 )
|
||||
{
|
||||
|
@ -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++ )
|
||||
{
|
||||
|
@ -310,7 +310,7 @@ int CHudMessage::Draw( float fTime )
|
||||
{
|
||||
int i, drawn;
|
||||
client_textmessage_t *pMessage;
|
||||
float endTime;
|
||||
float endTime = 0;
|
||||
|
||||
drawn = 0;
|
||||
|
||||
|
@ -74,7 +74,7 @@ void CBaseMonster::MonsterInitDead( void )
|
||||
|
||||
// Setup health counters, etc.
|
||||
BecomeDead();
|
||||
SetThink( &CorpseFallThink );
|
||||
SetThink( &CBaseMonster::CorpseFallThink );
|
||||
pev->nextthink = gpGlobals->time + 0.5;
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user