"Welcome back to <del>Celebrity Jeopardy</del> sm-ssc. I thought I was done with this, but <del>Regis Philbin</del> ScreenSelectMaster Cursor, that mongrel idiot, decided to <del>do a Celebrity Millionaire</del> crash, and <del>network</del> theming competition being what it is, I stand before you, a broken and miserable man."
For people who hate comedy in their commit logs, this makes it so ScreenSelectMaster only runs commands on cursors for human players (hopefully avoiding Access Violation in the process).
This commit is contained in:
@@ -551,14 +551,17 @@ bool ScreenSelectMaster::ChangePage( int iNewChoice )
|
||||
|
||||
FOREACH( PlayerNumber, vpns, p )
|
||||
{
|
||||
if( SHOW_CURSOR )
|
||||
if( GAMESTATE->IsHumanPlayer(*p) )
|
||||
{
|
||||
m_sprCursor[*p]->HandleMessage( msg );
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
}
|
||||
if( SHOW_CURSOR )
|
||||
{
|
||||
m_sprCursor[*p]->HandleMessage( msg );
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
}
|
||||
|
||||
if( SHOW_SCROLLER )
|
||||
m_vsprScroll[*p][m_iChoice[*p]]->HandleMessage( msg );
|
||||
if( SHOW_SCROLLER )
|
||||
m_vsprScroll[*p][m_iChoice[*p]]->HandleMessage( msg );
|
||||
}
|
||||
}
|
||||
|
||||
if( newPage == PAGE_2 )
|
||||
@@ -649,8 +652,11 @@ bool ScreenSelectMaster::ChangeSelection( PlayerNumber pn, MenuDir dir, int iNew
|
||||
|
||||
if( SHOW_CURSOR )
|
||||
{
|
||||
m_sprCursor[*p]->PlayCommand( "Change" );
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
if( GAMESTATE->IsHumanPlayer(*p) )
|
||||
{
|
||||
m_sprCursor[*p]->PlayCommand( "Change" );
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
}
|
||||
}
|
||||
|
||||
if( SHOW_SCROLLER )
|
||||
@@ -880,7 +886,8 @@ void ScreenSelectMaster::TweenOnScreen()
|
||||
{
|
||||
FOREACH( PlayerNumber, vpns, p )
|
||||
{
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
if( GAMESTATE->IsHumanPlayer(*p) )
|
||||
m_sprCursor[*p]->SetXY( GetCursorX(*p), GetCursorY(*p) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user