fix invalid pn value (which isn't actually used; just reducing StyleI use)

This commit is contained in:
Glenn Maynard
2004-12-04 11:09:32 +00:00
parent 29c5e8a9e1
commit 6e7c6adea1
+5 -3
View File
@@ -4,7 +4,8 @@
#include "ScreenManager.h"
#include "GameSoundManager.h"
#include "GameConstantsAndTypes.h"
#include "PrefsManager.h"
#include "GameState.h"
#include "Style.h"
#include "ThemeManager.h"
#include "ScreenDimensions.h"
@@ -92,13 +93,14 @@ void ScreenPrompt::Input( const DeviceInput& DeviceI, const InputEventType type,
if( DeviceI.device==DEVICE_KEYBOARD && type==IET_FIRST_PRESS )
{
PlayerNumber pn = GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber( GameI.controller );
switch( DeviceI.button )
{
case KEY_LEFT:
this->MenuLeft( StyleI.player );
this->MenuLeft( pn );
return;
case KEY_RIGHT:
this->MenuRight( StyleI.player );
this->MenuRight( pn );
return;
}
}