mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-22 08:50:18 +01:00
Bug fixes from master: score saving and missing sub.
This commit is contained in:
parent
86eaad5b79
commit
de6c31802c
3 changed files with 13 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -99,7 +99,6 @@ int high_score::write(high_score_struct* table, int* ptrToSmth)
|
|||
{
|
||||
}
|
||||
scoreSum += tablePtr->Score;
|
||||
++position;
|
||||
++tablePtr;
|
||||
}
|
||||
scramble_number_string(scoreSum, buf);
|
||||
|
|
Loading…
Reference in a new issue