Skip to content

Commit

Permalink
Merge branch 'master' into sohl1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Aug 21, 2024
2 parents 4b86be3 + f1c430a commit 6c9e104
Show file tree
Hide file tree
Showing 19 changed files with 238 additions and 116 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ jobs:
CXX: ${{ matrix.cxx }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Checkout steam-runtime
if: startsWith(matrix.os, 'ubuntu')
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ValveSoftware/steam-runtime
path: steam-runtime
- name: Cache steam-runtime
if: startsWith(matrix.os, 'ubuntu')
id: cache-steam-runtime
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
key: ${{ runner.os }}-steam-runtime
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Add msbuild to PATH
if: startsWith(matrix.os, 'windows')
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
- name: Build on Windows
if: startsWith(matrix.os, 'windows')
run: |
Expand All @@ -87,25 +87,25 @@ jobs:
id: extract_gamedir
- name: Upload linux artifact
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
- name: Upload linux artifact with vgui
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux-vgui
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
- name: Upload windows artifact
if: startsWith(matrix.os, 'windows')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
- name: Upload windows artifact with vgui
if: startsWith(matrix.os, 'windows')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows-vgui
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
CXX: ${{ matrix.cxx }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Checkout steam-runtime
if: startsWith(matrix.os, 'ubuntu')
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ValveSoftware/steam-runtime
path: steam-runtime
- name: Cache steam-runtime
if: startsWith(matrix.os, 'ubuntu')
id: cache-steam-runtime
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
key: ${{ runner.os }}-steam-runtime
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Add msbuild to PATH
if: startsWith(matrix.os, 'windows')
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
- name: Build on Windows
if: startsWith(matrix.os, 'windows')
run: |
Expand All @@ -100,13 +100,13 @@ jobs:
Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib
- name: Upload linux artifact
if: startsWith(matrix.os, 'ubuntu')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
- name: Upload windows artifact
if: startsWith(matrix.os, 'windows')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
Expand Down
1 change: 1 addition & 0 deletions cl_dll/ammohistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class HistoryResource
void Reset( void )
{
memset( rgAmmoHistory, 0, sizeof rgAmmoHistory );
iCurrentHistorySlot = 0;
}

int iHistoryGap;
Expand Down
2 changes: 1 addition & 1 deletion cl_dll/hud_spectator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ int UTIL_FindEntityInMap( const char *name, float *origin, float *angle )

if( token[0] == '}' )
{
gEngfuncs.Con_DPrintf( "UTIL_FindEntityInMap: closing brace without data" );
gEngfuncs.Con_DPrintf( "UTIL_FindEntityInMap: closing brace without data\n" );
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion dlls/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ int FindTransition( void *pmodel, int iEndingAnim, int iGoalAnim, int *piDir )
}
}

ALERT( at_console, "error in transition graph" );
ALERT( at_console, "error in transition graph\n" );
return iGoalAnim;
}

Expand Down
2 changes: 1 addition & 1 deletion dlls/h_cycler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void CCycler::GenericCyclerSpawn( const char *szModel, Vector vecMin, Vector vec
{
if( !szModel || !*szModel )
{
ALERT( at_error, "cycler at %.0f %.0f %0.f missing modelname", (double)pev->origin.x, (double)pev->origin.y, (double)pev->origin.z );
ALERT( at_error, "cycler at %.0f %.0f %0.f missing modelname\n", (double)pev->origin.x, (double)pev->origin.y, (double)pev->origin.z );
REMOVE_ENTITY( ENT( pev ) );
return;
}
Expand Down
2 changes: 1 addition & 1 deletion dlls/osprey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void COsprey::UpdateGoal()
}
else
{
ALERT( at_console, "osprey missing target" );
ALERT( at_console, "osprey missing target\n" );
}
}

Expand Down
8 changes: 4 additions & 4 deletions dlls/pathcorner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ void CPathCorner::Touch( CBaseEntity *pOther )
// UNDONE: support non-zero flWait
/*
if( m_flWait != 0 )
ALERT( at_warning, "Non-zero path-cornder waits NYI" );
ALERT( at_warning, "Non-zero path-cornder waits NYI\n" );
*/

// Find the next "stop" on the path, make it the goal of the "toucher".
if( FStringNull( pev->target ) )
{
ALERT( at_warning, "PathCornerTouch: no next stop specified" );
ALERT( at_warning, "PathCornerTouch: no next stop specified\n" );
}

pOther->m_pGoalEnt = UTIL_FindEntityByTargetname ( NULL, STRING(pev->target) );

// If "next spot" was not found (does not exist - level design error)
if( !pOther->m_pGoalEnt )
{
ALERT( at_console, "PathCornerTouch--%s couldn't find next stop in path: %s", STRING( pev->classname ), STRING( pev->target ) );
ALERT( at_console, "PathCornerTouch--%s couldn't find next stop in path: %s\n", STRING( pev->classname ), STRING( pev->target ) );
return;
}

Expand Down Expand Up @@ -388,7 +388,7 @@ CPathTrack *CPathTrack::Nearest( Vector origin )
deadCount++;
if( deadCount > 9999 )
{
ALERT( at_error, "Bad sequence of path_tracks from %s", STRING( pev->targetname ) );
ALERT( at_error, "Bad sequence of path_tracks from %s\n", STRING( pev->targetname ) );
return NULL;
}
delta = origin - ppath->pev->origin;
Expand Down
2 changes: 1 addition & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
ReturnSpot:
if( FNullEnt( pSpot ) )
{
ALERT( at_error, "PutClientInServer: no info_player_start on level" );
ALERT( at_error, "PutClientInServer: no info_player_start on level\n" );
return INDEXENT( 0 );
}

Expand Down
14 changes: 7 additions & 7 deletions dlls/triggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3173,16 +3173,16 @@ void CTriggerCounter::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller,
switch( m_cTriggersLeft )
{
case 1:
ALERT( at_console, "Only 1 more to go..." );
ALERT( at_console, "Only 1 more to go...\n" );
break;
case 2:
ALERT( at_console, "Only 2 more to go..." );
ALERT( at_console, "Only 2 more to go...\n" );
break;
case 3:
ALERT( at_console, "Only 3 more to go..." );
ALERT( at_console, "Only 3 more to go...\n" );
break;
default:
ALERT( at_console, "There are more to go..." );
ALERT( at_console, "There are more to go...\n" );
break;
}
}
Expand All @@ -3191,7 +3191,7 @@ void CTriggerCounter::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller,

// !!!UNDONE: I don't think we want these Quakesque messages
if( fTellActivator )
ALERT( at_console, "Sequence completed!" );
ALERT( at_console, "Sequence completed!\n" );

ActivateMultiTrigger( m_hActivator );
}
Expand Down Expand Up @@ -3332,7 +3332,7 @@ When the player touches this, he gets sent to the map listed in the "map" variab
void CChangeLevel::Spawn( void )
{
if( FStrEq( m_szMapName, "" ) )
ALERT( at_console, "a trigger_changelevel doesn't have a map" );
ALERT( at_console, "a trigger_changelevel doesn't have a map\n" );

if( FStrEq( m_szLandmarkName, "" ) )
ALERT( at_console, "trigger_changelevel to %s doesn't have a landmark\n", m_szMapName );
Expand Down Expand Up @@ -3597,7 +3597,7 @@ int CChangeLevel::ChangeList( LEVELLIST *pLevelList, int maxList )
entityFlags[entityCount] = flags;
entityCount++;
if( entityCount > MAX_ENTITY )
ALERT( at_error, "Too many entities across a transition!" );
ALERT( at_error, "Too many entities across a transition!\n" );
}
//else
// ALERT( at_console, "Failed %s\n", STRING( pEntity->pev->classname ) );
Expand Down
18 changes: 9 additions & 9 deletions dlls/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ edict_t *DBG_EntOfVars( const entvars_t *pev )
{
if( pev->pContainingEntity != NULL )
return pev->pContainingEntity;
ALERT( at_console, "entvars_t pContainingEntity is NULL, calling into engine" );
ALERT( at_console, "entvars_t pContainingEntity is NULL, calling into engine\n" );
edict_t *pent = (*g_engfuncs.pfnFindEntityByVars)( (entvars_t*)pev );
if( pent == NULL )
ALERT( at_console, "DAMN! Even the engine couldn't FindEntityByVars!" );
ALERT( at_console, "DAMN! Even the engine couldn't FindEntityByVars!\n" );
( (entvars_t *)pev )->pContainingEntity = pent;
return pent;
}
Expand Down Expand Up @@ -2018,7 +2018,7 @@ static int gSizes[FIELD_TYPECOUNT] =
sizeof(string_t), // FIELD_STRING
sizeof(void*), // FIELD_ENTITY
sizeof(void*), // FIELD_CLASSPTR
sizeof(void*), // FIELD_EHANDLE
sizeof(EHANDLE), // FIELD_EHANDLE
sizeof(void*), // FIELD_entvars_t
sizeof(void*), // FIELD_EDICT
sizeof(float) * 3, // FIELD_VECTOR
Expand Down Expand Up @@ -2183,7 +2183,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )
static int tokensparsed = 0;
tokensparsed++;
if( !m_pdata->tokenCount || !m_pdata->pTokens )
ALERT( at_error, "No token table array in TokenHash()!" );
ALERT( at_error, "No token table array in TokenHash()!\n" );
#endif
for( int i = 0; i < m_pdata->tokenCount; i++ )
{
Expand All @@ -2192,7 +2192,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )
if( i > 50 && !beentheredonethat )
{
beentheredonethat = TRUE;
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is getting too full!" );
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is getting too full!\n" );
}
#endif
int index = hash + i;
Expand All @@ -2208,7 +2208,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )

// Token hash table full!!!
// [Consider doing overflow table(s) after the main table & limiting linear hash table search]
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is COMPLETELY FULL!" );
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is COMPLETELY FULL!\n" );
return 0;
}

Expand Down Expand Up @@ -2527,7 +2527,7 @@ void CSave::BufferHeader( const char *pname, int size )
{
short hashvalue = TokenHash( pname );
if( size > 1 << ( sizeof(short) * 8 ) )
ALERT( at_error, "CSave :: BufferHeader() size parameter exceeds 'short'!" );
ALERT( at_error, "CSave :: BufferHeader() size parameter exceeds 'short'!\n" );
BufferData( (const char *)&size, sizeof(short) );
BufferData( (const char *)&hashvalue, sizeof(short) );
}
Expand All @@ -2539,7 +2539,7 @@ void CSave::BufferData( const char *pdata, int size )

if( m_pdata->size + size > m_pdata->bufferSize )
{
ALERT( at_error, "Save/Restore overflow!" );
ALERT( at_error, "Save/Restore overflow!\n" );
m_pdata->size = m_pdata->bufferSize;
return;
}
Expand Down Expand Up @@ -2848,7 +2848,7 @@ void CRestore::BufferReadBytes( char *pOutput, int size )

if( ( m_pdata->size + size ) > m_pdata->bufferSize )
{
ALERT( at_error, "Restore overflow!" );
ALERT( at_error, "Restore overflow!\n" );
m_pdata->size = m_pdata->bufferSize;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions dlls/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ void CFuncVehicle::Spawn()

if( FStringNull( pev->target ))
{
ALERT( at_console, "Vehicle with no target" );
ALERT( at_console, "Vehicle with no target\n" );
}

if( pev->spawnflags & SF_TRACKTRAIN_PASSABLE )
Expand Down Expand Up @@ -927,7 +927,7 @@ void CFuncVehicle::Restart()

if( FStringNull( pev->target ))
{
ALERT( at_console, "Vehicle with no target" );
ALERT( at_console, "Vehicle with no target\n" );
}

UTIL_SetOrigin( this, pev->oldorigin );
Expand Down
33 changes: 24 additions & 9 deletions engine/mobility_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,30 @@
mobility_int.h - interface between engine and client for mobile platforms
Copyright (C) 2015 a1batross
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>
*/
#pragma once
#if !defined(MOBILITY_INT_H)
Expand Down
Loading

0 comments on commit 6c9e104

Please sign in to comment.