Skip to content

Commit f62b6d6

Browse files
committed
engine: Drop a bit of x360 code
1 parent d0141f3 commit f62b6d6

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

engine/cl_main.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,8 @@ bool CL_ShouldLoadBackgroundLevel( const CCommand &args )
21962196

21972197
// If TF2 and PC we don't want to load the background map.
21982198
bool bIsTF2 = false;
2199-
if ( ( Q_stricmp( COM_GetModDirectory(), "tf" ) == 0 ) || ( Q_stricmp( COM_GetModDirectory(), "tf_beta" ) == 0 ) )
2199+
if ( ( Q_stricmp( COM_GetModDirectory(), "tf" ) == 0 ) ||
2200+
( Q_stricmp( COM_GetModDirectory(), "tf_beta" ) == 0 ) )
22002201
{
22012202
bIsTF2 = true;
22022203
}
@@ -2206,15 +2207,6 @@ bool CL_ShouldLoadBackgroundLevel( const CCommand &args )
22062207

22072208
if ( args.ArgC() == 2 )
22082209
{
2209-
// presence of args identifies an end-of-game situation
2210-
if ( IsX360() )
2211-
{
2212-
// 360 needs to get UI in the correct state to transition to the Background level
2213-
// from the credits.
2214-
EngineVGui()->OnCreditsFinished();
2215-
return true;
2216-
}
2217-
22182210
if ( !Q_stricmp( args[1], "force" ) )
22192211
{
22202212
// Adrian: Have to do this so the menu shows up if we ever call this while in a level.
@@ -2264,12 +2256,6 @@ bool CL_ShouldLoadBackgroundLevel( const CCommand &args )
22642256
CommandLine()->CheckParm("-makereslists"))
22652257
return false;
22662258

2267-
#ifdef _X360
2268-
// check if we are accepting an invite
2269-
if ( XboxLaunch()->GetLaunchFlags() & LF_INVITERESTART )
2270-
return false;
2271-
#endif
2272-
22732259
// nothing else is going on, so load the startup level
22742260

22752261
return true;

0 commit comments

Comments
 (0)