Bug fixes from master: score saving and missing sub.

This commit is contained in:
Muzychenko Andrey 2021-09-30 08:59:56 +03:00
parent 86eaad5b79
commit de6c31802c
3 changed files with 13 additions and 4 deletions

View File

@ -902,9 +902,19 @@ void control::table_set_replay(float value)
control_info_text_box_tag.Component->Display(pinball::get_rc_string(0, 0), value);
}
int control::cheat_bump_rank()
void control::cheat_bump_rank()
{
return 0;
char Buffer[64]{};
auto rank = control_middle_circle_tag.Component->Message(37, 0.0);
if (rank < 9)
{
control_middle_circle_tag.Component->Message(41, 2.0f);
auto rankText = pinball::get_rc_string(RankRcArray[rank], 1);
snprintf(Buffer, sizeof Buffer, pinball::get_rc_string(83, 0), rankText);
control_mission_text_box_tag.Component->Display(Buffer, 8.0);
control_soundwave10_tag.Component->Play();
}
}
bool control::light_on(component_tag<TLight>* tag)

View File

@ -81,7 +81,7 @@ public:
static void table_set_multiball();
static void table_bump_ball_sink_lock();
static void table_set_replay(float value);
static int cheat_bump_rank();
static void cheat_bump_rank();
static bool light_on(component_tag<TLight>* tag);
static int SpecialAddScore(int score);
static int AddRankProgress(int rank);

View File

@ -99,7 +99,6 @@ int high_score::write(high_score_struct* table, int* ptrToSmth)
{
}
scoreSum += tablePtr->Score;
++position;
++tablePtr;
}
scramble_number_string(scoreSum, buf);