From 53e78c503e6e9c7d15e2eefc480755fe37dd7077 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Thu, 15 May 2014 13:59:18 -0700 Subject: General: * Upgraded Steamworks SDK to v1.29 * Fixed mod compatibility problem with Multiplayer Base that was introduced in September. * In Hammer, while using the Vertex Tool, pressing CTRL+B will snap selected vertices to the grid. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Virtual Reality: * Mods that support virtual reality now need to have a line in gameinfo.txt that says “supportsvr 1”. This indicates to gameui and engine that certain UI should be enabled. * VR-enabled mods will now start up in VR mode when launched from Steam’s VR mode. Windows: * Upgraded to Visual Studio 2013. If you need to build projects for VS 2010, add /2010 to your VPC command line. OSX: * Upgraded to XCode 5. --- mp/src/utils/vrad/disp_vrad.cpp | 4 ++-- mp/src/utils/vrad/vrad.cpp | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'mp/src/utils/vrad') diff --git a/mp/src/utils/vrad/disp_vrad.cpp b/mp/src/utils/vrad/disp_vrad.cpp index b254b9d7..b1d63b6e 100644 --- a/mp/src/utils/vrad/disp_vrad.cpp +++ b/mp/src/utils/vrad/disp_vrad.cpp @@ -46,7 +46,7 @@ int FindNeighborCornerVert( CCoreDispInfo *pDisp, const Vector &vTest ) } -int GetAllNeighbors( const CCoreDispInfo *pDisp, int iNeighbors[512] ) +int GetAllNeighbors( const CCoreDispInfo *pDisp, int (&iNeighbors)[512] ) { int nNeighbors = 0; @@ -57,7 +57,7 @@ int GetAllNeighbors( const CCoreDispInfo *pDisp, int iNeighbors[512] ) for ( int i=0; i < pCorner->m_nNeighbors; i++ ) { - if ( nNeighbors < _ARRAYSIZE( iNeighbors ) ) + if ( nNeighbors < ARRAYSIZE( iNeighbors ) ) iNeighbors[nNeighbors++] = pCorner->m_Neighbors[i]; } } diff --git a/mp/src/utils/vrad/vrad.cpp b/mp/src/utils/vrad/vrad.cpp index 70e481fb..a7cba1c0 100644 --- a/mp/src/utils/vrad/vrad.cpp +++ b/mp/src/utils/vrad/vrad.cpp @@ -34,7 +34,7 @@ every surface must be divided into at least two patches each axis */ CUtlVector g_Patches; -CUtlVector g_FacePatches; // constains all patches, children first +CUtlVector g_FacePatches; // contains all patches, children first CUtlVector faceParents; // contains only root patches, use next parent to iterate CUtlVector clusterChildren; CUtlVector emitlight; @@ -2408,12 +2408,13 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail ) { if ( ++i < argc ) { - numbounce = atoi (argv[i]); - if ( numbounce < 0 ) + int bounceParam = atoi (argv[i]); + if ( bounceParam < 0 ) { Warning("Error: expected non-negative value after '-bounce'\n" ); return 1; } + numbounce = (unsigned)bounceParam; } else { -- cgit v1.2.3