Skip to content

Commit

Permalink
Adding option to disable indicator.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 16, 2017
1 parent ece552a commit eefa28b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SADXCharSel/SADXCharSel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ __declspec(naked) void ChangeStartPosCharLoading()
__int16 selectedcharacter[PLAYER_COUNT] = { -1, -1, -1, -1 };
int raceaicharacter = Characters_Sonic;
int tailsaicharacter = Characters_Tails;
bool enableindicator = true;

int GetSelectedCharacter()
{
Expand Down Expand Up @@ -257,7 +258,8 @@ void LoadCharacter_r()
obj->Data1->Position.z = lastobj->Data1->Position.z - njSin(lastobj->Data1->Rotation.y) * 10;
lastobj = obj;
}
InitIndicator();
if (enableindicator)
InitIndicator();
}
}

Expand Down Expand Up @@ -1259,6 +1261,7 @@ extern "C"
const IniFile *settings = new IniFile(std::string(path) + "\\mod.ini");
tailsaicharacter = ParseCharacterID(settings->getString("", "TailsAICharacter"), Characters_Tails);
raceaicharacter = ParseCharacterID(settings->getString("", "RaceAICharacter"), Characters_Sonic);
enableindicator = settings->getBool("", "EnableIndicator", true);
delete settings;
}

Expand Down

0 comments on commit eefa28b

Please sign in to comment.