diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e71ffd6..dd063bf5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/game/server/AI_ResponseSystem.cpp b/game/server/AI_ResponseSystem.cpp index 2ea44879..3ea4a283 100644 --- a/game/server/AI_ResponseSystem.cpp +++ b/game/server/AI_ResponseSystem.cpp @@ -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 ); diff --git a/game/server/baseentity.h b/game/server/baseentity.h index 374ada08..1b0ad9a6 100644 --- a/game/server/baseentity.h +++ b/game/server/baseentity.h @@ -2960,7 +2960,7 @@ inline const char* CBaseEntity::ScriptGetModelName(void) const do \ { \ m_pfnMoveDone = static_cast (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 ) \ diff --git a/game/server/triggers.cpp b/game/server/triggers.cpp index 65a8df22..36ca419f 100644 --- a/game/server/triggers.cpp +++ b/game/server/triggers.cpp @@ -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;