mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-07-16 06:19:58 +00:00
fix(CI): Install 64bit deps for linux.
fix(FunctionCheck): Should not fail anymore. fix(triggers): cast to intp. fix(AI_ResponseSystem): Fix ResponseSystemCompare cast. Untested.
This commit is contained in:
parent
dba14e2dc1
commit
4d49e1eb12
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -2,7 +2,7 @@ name: Build
|
||||
|
||||
on: [push, pull_request]
|
||||
env:
|
||||
WAF_FLAGS: -T debug --disable-warns --prefix=build_hl2
|
||||
WAF_FLAGS: -T release --disable-warns --prefix=build_hl2
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
- name: Install common dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y g++-multilib gcc-multilib
|
||||
- name: Install 32bit dependencies
|
||||
if: ${{ matrix.bits == '' && !matrix.android }}
|
||||
if: ${{ matrix.bits != '' && !matrix.android }}
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
sudo apt-get update
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get install -y $DEPS
|
||||
- name: Install Android dependencies
|
||||
if: ${{ matrix.android != '' }}
|
||||
if: ${{ matrix.android == '' }}
|
||||
run: |
|
||||
wget https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip -o /dev/null
|
||||
unzip android-ndk-r10e-linux-x86_64.zip
|
||||
|
||||
@ -3054,7 +3054,7 @@ CON_COMMAND( rr_reloadresponsesystems, "Reload all response system scripts." )
|
||||
bool ResponseSystemCompare( const char *criterion, const char *value )
|
||||
{
|
||||
Criteria criteria;
|
||||
criteria.value = criterion;
|
||||
criteria.value = (char *)criterion;
|
||||
defaultresponsesytem.ComputeMatcher( &criteria, criteria.matcher );
|
||||
return defaultresponsesytem.CompareUsingMatcher( value, criteria.matcher, true );
|
||||
|
||||
|
||||
@ -2960,7 +2960,7 @@ inline const char* CBaseEntity::ScriptGetModelName(void) const
|
||||
do \
|
||||
{ \
|
||||
m_pfnMoveDone = static_cast <void (CBaseEntity::*)(void)> (a); \
|
||||
FunctionCheck( * (inputfunc_t *)(((char *)this + ( offsetof(CBaseEntity,m_pfnMoveDone)))), "BaseMoveFunc" ); \
|
||||
FunctionCheck( (void *)*((int *)((char *)this + ( offsetof(CBaseEntity,m_pfnMoveDone)))), "BaseMoveFunc" );
|
||||
} while ( 0 )
|
||||
#else
|
||||
#define SetMoveDone( a ) \
|
||||
|
||||
@ -4235,7 +4235,7 @@ public:
|
||||
return IMotionEvent::SIM_NOTHING;
|
||||
|
||||
// Get a cosine modulated noise between 5 and 20 that is object specific
|
||||
int nNoiseMod = 5+(int)pObject%15; //
|
||||
int nNoiseMod = 5+(intp)pObject%15; //
|
||||
|
||||
// Turn wind yaw direction into a vector and add noise
|
||||
QAngle vWindAngle = vec3_angle;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user