1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-24 09:50:19 +01:00

Merge from master: fixed bug with mission accept scores.

Ref issue #81.
This commit is contained in:
Muzychenko Andrey 2021-11-04 18:49:49 +03:00
parent da4b99e983
commit c7f5f8cd30

View file

@ -3772,9 +3772,9 @@ void control::SelectMissionController(int code, TPinballComponent* caller)
if (light_on(&control_lite319_tag))
control_lite319_tag.Component->Message(20, 0.0);
control_lite198_tag.Component->MessageField = control_lite56_tag.Component->MessageField;
auto scoreId = control_lite56_tag.Component->MessageField - 2;
MissionControl(66, nullptr);
int addedScore = SpecialAddScore(
mission_select_scores[control_lite56_tag.Component->MessageField - 2]);
int addedScore = SpecialAddScore(mission_select_scores[scoreId]);
wsprintfW(Buffer, pinball::get_rc_Wstring(77, 0), addedScore);
control_mission_text_box_tag.Component->Display(Buffer, 4.0);
}