Skip to content

Commit

Permalink
picked off a few more clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Katana-Steel committed Apr 20, 2018
1 parent 77cdbb7 commit ff459b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions NOLF2/ClientShellDLL/ClientShellShared/GameClientShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1150,14 +1150,14 @@ uint32 CGameClientShell::OnEngineInitialized(RMode *pMode, LTGUID *pAppGuid)

// Process command line.

if (hVar = g_pLTClient->GetConsoleVar("join")) // looking for join [ip] format
if ((hVar = g_pLTClient->GetConsoleVar("join"))) // looking for join [ip] format
{
g_pInterfaceMgr->SetCommandLineJoin( true );

// Change to the splash screen. We'll start the game after that.
GetInterfaceMgr( )->ChangeState(GS_SPLASHSCREEN);
}
else if (hVar = g_pLTClient->GetConsoleVar("host")) // looking for host [1] format
else if ((hVar = g_pLTClient->GetConsoleVar("host"))) // looking for host [1] format
{
int nHost = atoi(g_pLTClient->GetVarValueString( hVar ));

Expand Down Expand Up @@ -1229,7 +1229,7 @@ uint32 CGameClientShell::OnEngineInitialized(RMode *pMode, LTGUID *pAppGuid)
GetInterfaceMgr( )->ChangeState(GS_SPLASHSCREEN);
}
}
else if (hVar = g_pLTClient->GetConsoleVar("runworld"))
else if ((hVar = g_pLTClient->GetConsoleVar("runworld")))
{
const char* pMap = g_pLTClient->GetVarValueString(hVar);
if (!pMap)
Expand Down Expand Up @@ -1708,9 +1708,9 @@ void CGameClientShell::UpdatePlaying()
( nEndTicks + ~g_nStartTicks );

// Make sure all the counters match up.
if( (( uint32 ) abs( (long)(nDeltaTimeB - nDeltaClientTime) ) > g_nTolerance ) ||
(( uint32 ) abs( (long)(nDeltaTicks - nDeltaClientTime) ) > g_nTolerance ) ||
(( uint32 ) abs( (long)(nDeltaTimeB - nDeltaTicks) ) > g_nTolerance ) )
if( (( uint32 ) abs( (int)(nDeltaTimeB - nDeltaClientTime) ) > g_nTolerance ) ||
(( uint32 ) abs( (int)(nDeltaTicks - nDeltaClientTime) ) > g_nTolerance ) ||
(( uint32 ) abs( (int)(nDeltaTimeB - nDeltaTicks) ) > g_nTolerance ) )
{
g_pLTClient->CPrint( "Speedhack kick" );
g_pLTClient->CPrint( "nDeltaTimeB %d", nDeltaTimeB );
Expand Down
1 change: 1 addition & 0 deletions NOLF2/ObjectDLL/ObjectShared/AIGoalAttackRangedDynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ void CAIGoalAttackRangedDynamic::UpdateGoal()
case kState_HumanAttackMove:
HandleStateAttackMove();
return;
default: break;
}

super::ActivateGoal();
Expand Down

0 comments on commit ff459b3

Please sign in to comment.