mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
add source-sdk-2013
This commit is contained in:
@@ -930,7 +930,7 @@ void CAchievementMgr::AwardAchievement( int iAchievementID )
|
||||
pAchievement->OnAchieved();
|
||||
|
||||
// [tj]
|
||||
IGameEvent * event = gameeventmanager->CreateEvent( "achievement_earned" );
|
||||
IGameEvent * event = gameeventmanager->CreateEvent( "achievement_earned_local" );
|
||||
if ( event )
|
||||
{
|
||||
event->SetInt( "achievement", pAchievement->GetAchievementID() );
|
||||
@@ -1033,8 +1033,6 @@ extern bool IsInCommentaryMode( void );
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CAchievementMgr::CheckAchievementsEnabled()
|
||||
{
|
||||
return true;
|
||||
|
||||
// if PC, Steam must be running and user logged in
|
||||
if ( IsPC() && !LoggedIntoSteam() )
|
||||
{
|
||||
@@ -1117,7 +1115,7 @@ bool CAchievementMgr::CheckAchievementsEnabled()
|
||||
#ifndef NO_STEAM
|
||||
// Cheats get turned on automatically if you run with -dev which many people do internally, so allow cheats if developer is turned on and we're not running
|
||||
// on Steam public
|
||||
if ( developer.GetInt() == 0 || ( k_EUniverseInvalid == GetUniverse() ) || ( k_EUniversePublic == GetUniverse() ) )
|
||||
if ( developer.GetInt() == 0 || !steamapicontext->SteamUtils() || (k_EUniversePublic == steamapicontext->SteamUtils()->GetConnectedUniverse()) )
|
||||
{
|
||||
Msg( "Achievements disabled: cheats turned on in this app session.\n" );
|
||||
return false;
|
||||
@@ -1190,7 +1188,7 @@ bool CalcPlayersOnFriendsList( int iMinFriends )
|
||||
continue;
|
||||
#ifndef NO_STEAM
|
||||
// check and see if they're on the local player's friends list
|
||||
CSteamID steamID( pi.friendsID, 1, GetUniverse(), k_EAccountTypeIndividual );
|
||||
CSteamID steamID( pi.friendsID, 1, steamapicontext->SteamUtils()->GetConnectedUniverse(), k_EAccountTypeIndividual );
|
||||
if ( !steamapicontext->SteamFriends()->HasFriend( steamID, /*k_EFriendFlagImmediate*/ 0x04 ) )
|
||||
continue;
|
||||
#endif
|
||||
@@ -1250,7 +1248,7 @@ bool CalcHasNumClanPlayers( int iClanTeammates )
|
||||
if ( engine->GetPlayerInfo( iPlayerIndex, &pi ) && ( pi.friendsID ) )
|
||||
{
|
||||
// check and see if they're on the local player's friends list
|
||||
CSteamID steamID( pi.friendsID, 1, GetUniverse(), k_EAccountTypeIndividual );
|
||||
CSteamID steamID( pi.friendsID, 1, steamapicontext->SteamUtils()->GetConnectedUniverse(), k_EAccountTypeIndividual );
|
||||
if ( steamapicontext->SteamFriends()->IsUserInSource( steamID, clanID ) )
|
||||
{
|
||||
iClanMembersOnTeam++;
|
||||
|
||||
Reference in New Issue
Block a user