Skip to content

Commit

Permalink
fix doubles (and solo?) crash when loading notefields
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Feb 11, 2019
1 parent 22b9fd9 commit e440db2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ Style::StyleInputToGameInput(int iCol,

FOREACH_ENUM(GameController, gc)
{
if (bUsingOneSide && gc != (int)pn)
continue;
// if (bUsingOneSide && gc != (int)pn)
// continue;

// this treats player 2's game buttons as an extension of player 1's
// when determining if there are appropriately mapped buttons for the
// style, however since player 2 was removed internally this will
// cause anything mapped to gc2 ("p2") to be ignored and cause a crash.
// i dont really see how force crashing the game because buttons aren't
// mapped is a good idea in the first place but uhhh whatever -mina

int iButtonsPerController =
INPUTMAPPER->GetInputScheme()->m_iButtonsPerController;
Expand Down

0 comments on commit e440db2

Please sign in to comment.