allow gameplay debug keys on any page
This commit is contained in:
@@ -392,8 +392,6 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input )
|
|||||||
FOREACH_CONST( IDebugLine*, *g_pvpSubscribers, p )
|
FOREACH_CONST( IDebugLine*, *g_pvpSubscribers, p )
|
||||||
{
|
{
|
||||||
RString sPageName = (*p)->GetPageName();
|
RString sPageName = (*p)->GetPageName();
|
||||||
if( sPageName != GetCurrentPageName() )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
int i = p-g_pvpSubscribers->begin();
|
int i = p-g_pvpSubscribers->begin();
|
||||||
|
|
||||||
@@ -404,6 +402,8 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input )
|
|||||||
case IDebugLine::all_screens:
|
case IDebugLine::all_screens:
|
||||||
if( !g_bIsDisplayed )
|
if( !g_bIsDisplayed )
|
||||||
continue;
|
continue;
|
||||||
|
if( sPageName != GetCurrentPageName() )
|
||||||
|
continue;
|
||||||
break;
|
break;
|
||||||
case IDebugLine::gameplay_only:
|
case IDebugLine::gameplay_only:
|
||||||
if( !IsGameplay() )
|
if( !IsGameplay() )
|
||||||
|
|||||||
Reference in New Issue
Block a user