mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Fix visual studio server build
This commit is contained in:
parent
b047eefead
commit
02532a478b
@ -410,7 +410,7 @@ LINK_ENTITY_TO_CLASS( trip_beam, CTripBeam )
|
|||||||
void CTripBeam::Spawn( void )
|
void CTripBeam::Spawn( void )
|
||||||
{
|
{
|
||||||
CLightning::Spawn();
|
CLightning::Spawn();
|
||||||
SetTouch( &TriggerTouch );
|
SetTouch( &CLightning::TriggerTouch );
|
||||||
pev->solid = SOLID_TRIGGER;
|
pev->solid = SOLID_TRIGGER;
|
||||||
RelinkBeam();
|
RelinkBeam();
|
||||||
}
|
}
|
||||||
@ -1267,7 +1267,7 @@ void CSprite::TurnOn( void )
|
|||||||
pev->effects = 0;
|
pev->effects = 0;
|
||||||
if( ( pev->framerate && m_maxFrame > 1.0 ) || ( pev->spawnflags & SF_SPRITE_ONCE ) )
|
if( ( pev->framerate && m_maxFrame > 1.0 ) || ( pev->spawnflags & SF_SPRITE_ONCE ) )
|
||||||
{
|
{
|
||||||
SetThink( &CSprite::CSprite::AnimateThink );
|
SetThink( &CSprite::AnimateThink );
|
||||||
pev->nextthink = gpGlobals->time;
|
pev->nextthink = gpGlobals->time;
|
||||||
m_lastTime = gpGlobals->time;
|
m_lastTime = gpGlobals->time;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,8 @@ LINK_ENTITY_TO_CLASS( info_node_air, CNodeEnt )
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#define CreateDirectory(p, n) mkdir(p, 0777)
|
#define CreateDirectory(p, n) mkdir(p, 0777)
|
||||||
|
#else
|
||||||
|
#define CreateDirectory(p, n) CreateDirectoryA(p, n)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
|
@ -1080,7 +1080,7 @@ void CBasePlayerAmmo::DefaultTouch( CBaseEntity *pOther )
|
|||||||
//=========================================================
|
//=========================================================
|
||||||
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
|
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
|
||||||
{
|
{
|
||||||
int iReturn;
|
int iReturn = 0;
|
||||||
|
|
||||||
if( pszAmmo1() != NULL )
|
if( pszAmmo1() != NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user