mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-27 07:04:16 +00:00
Merge branch 'master' of https://github.com/FWGS/hlsdk-xash3d
This commit is contained in:
commit
611d2b73a5
@ -17,7 +17,9 @@
|
|||||||
#define ROLL 2
|
#define ROLL 2
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#define HSPRITE HSPRITE_win32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#undef HSPRITE
|
||||||
#else
|
#else
|
||||||
typedef struct point_s
|
typedef struct point_s
|
||||||
{
|
{
|
||||||
|
@ -219,11 +219,12 @@ void IN_Move( float frametime, usercmd_t *cmd )
|
|||||||
if( ac_movecount )
|
if( ac_movecount )
|
||||||
{
|
{
|
||||||
IN_ToggleButtons( ac_forwardmove / ac_movecount, ac_sidemove / ac_movecount );
|
IN_ToggleButtons( ac_forwardmove / ac_movecount, ac_sidemove / ac_movecount );
|
||||||
|
|
||||||
if( ac_forwardmove )
|
if( ac_forwardmove )
|
||||||
cmd->forwardmove = ac_forwardmove * cl_forwardspeed->value / ac_movecount;
|
cmd->forwardmove = ac_forwardmove * cl_forwardspeed->value / ac_movecount;
|
||||||
if( ac_sidemove )
|
if( ac_sidemove )
|
||||||
cmd->sidemove = ac_sidemove * cl_sidespeed->value / ac_movecount;
|
cmd->sidemove = ac_sidemove * cl_sidespeed->value / ac_movecount;
|
||||||
if( in_speed.state & 1 )
|
if( ( in_speed.state & 1 ) && ( ac_sidemove || ac_forwardmove ) )
|
||||||
{
|
{
|
||||||
cmd->forwardmove *= cl_movespeedkey->value;
|
cmd->forwardmove *= cl_movespeedkey->value;
|
||||||
cmd->sidemove *= cl_movespeedkey->value;
|
cmd->sidemove *= cl_movespeedkey->value;
|
||||||
|
@ -38,7 +38,9 @@
|
|||||||
#define NOSERVICE
|
#define NOSERVICE
|
||||||
#define NOMCX
|
#define NOMCX
|
||||||
#define NOIME
|
#define NOIME
|
||||||
|
#define HSPRITE HSPRITE_win32
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
#undef HSPRITE
|
||||||
#else // _WIN32
|
#else // _WIN32
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
|
@ -37,7 +37,7 @@ extern globalvars_t *gpGlobals;
|
|||||||
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset)
|
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset)
|
||||||
|
|
||||||
#if !defined __amd64__ || defined(CLIENT_DLL)
|
#if !defined __amd64__ || defined(CLIENT_DLL)
|
||||||
#define MAKE_STRING(str) ((int)str - (int)STRING(0))
|
#define MAKE_STRING(str) ((int)(size_t)str - (int)(size_t)STRING(0))
|
||||||
#else
|
#else
|
||||||
#define MAKE_STRING ALLOC_STRING
|
#define MAKE_STRING ALLOC_STRING
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user