Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 21 | ||
---|---|---|---|
Line 152... | Line 152... | ||
152 | } else { |
152 | } else { |
153 | gCheckpoint = 1; |
153 | gCheckpoint = 1; |
154 | gLap++; |
154 | gLap++; |
155 | if (gLap == gTotal_laps) { |
155 | if (gLap == gTotal_laps) { |
156 | PratcamEvent(33); // FIXME: or PratcamEventNow |
156 | PratcamEvent(33); // FIXME: or PratcamEventNow |
157 | NewTextHeadupSlot( |
157 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, GetMiscString(kMiscString_FinalLap)); |
158 | DRS3StartSound(gPedestrians_outlet, 8014); |
158 | DRS3StartSound(gPedestrians_outlet, 8014); |
159 | done_voice = 1; |
159 | done_voice = 1; |
160 | } else if (gLap > gTotal_laps) { |
160 | } else if (gLap > gTotal_laps) { |
161 | gLap = gTotal_laps; |
161 | gLap = gTotal_laps; |
162 | gCheckpoint = gCheckpoint_count; |
162 | gCheckpoint = gCheckpoint_count; |
Line 204... | Line 204... | ||
204 | if (gNet_mode == eNet_mode_none) { |
204 | if (gNet_mode == eNet_mode_none) { |
205 | if (gCheckpoint == ((gCurrent_race.check_point_count < pCheckpoint_index + 2) ? ((gLap == 1) ? -1 : 1) : (pCheckpoint_index + 2))) { |
205 | if (gCheckpoint == ((gCurrent_race.check_point_count < pCheckpoint_index + 2) ? ((gLap == 1) ? -1 : 1) : (pCheckpoint_index + 2))) { |
206 | return; |
206 | return; |
207 | } |
207 | } |
208 | } |
208 | } |
209 | NewTextHeadupSlot( |
209 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, GetMiscString(kMiscString_WrongCheckpoint)); |
210 | DRS3StartSound(gPedestrians_outlet, 8013); |
210 | DRS3StartSound(gPedestrians_outlet, 8013); |
211 | gLast_checkpoint_time = GetTotalTime(); |
211 | gLast_checkpoint_time = GetTotalTime(); |
212 | gLast_wrong_checkpoint = pCheckpoint_index; |
212 | gLast_wrong_checkpoint = pCheckpoint_index; |
213 | } |
213 | } |
214 | } |
214 | } |
Line 296... | Line 296... | ||
296 | // IDA: void __cdecl TotalRepair() |
296 | // IDA: void __cdecl TotalRepair() |
297 | void TotalRepair(void) { |
297 | void TotalRepair(void) { |
298 | LOG_TRACE("()"); |
298 | LOG_TRACE("()"); |
299 | 299 | ||
300 | TotallyRepairCar(); |
300 | TotallyRepairCar(); |
301 | NewTextHeadupSlot( |
301 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, GetMiscString(kMiscString_InstantRepair)); |
302 | } |
302 | } |
303 | 303 | ||
304 | // IDA: void __cdecl DoLogos() |
304 | // IDA: void __cdecl DoLogos() |
305 | void DoLogos(void) { |
305 | void DoLogos(void) { |
306 | ClearEntireScreen(); |
306 | ClearEntireScreen(); |
307 | DoSCILogo(); |
307 | DoSCILogo(); |
308 | DoOpeningAnimation(); |
308 | DoOpeningAnimation(); |
309 | DoStainlessLogo(); |
309 | DoStainlessLogo(); |
- | 310 | #ifdef DETHRACE_FIX_BUGS |
|
- | 311 | /* StartMusic is only called in PlaySmackerFile when sound and cutscenes are enabled */ |
|
- | 312 | if (!gSound_override && gCut_scene_override) { |
|
- | 313 | if (!harness_game_config.no_music) { |
|
- | 314 | StartMusic(); |
|
- | 315 | } |
|
- | 316 | } |
|
- | 317 | #endif |
|
310 | gProgram_state.prog_status = eProg_opening; |
318 | gProgram_state.prog_status = eProg_opening; |
311 | } |
319 | } |
312 | 320 | ||
313 | // IDA: void __cdecl DoProgOpeningAnimation() |
321 | // IDA: void __cdecl DoProgOpeningAnimation() |
314 | void DoProgOpeningAnimation(void) { |
322 | void DoProgOpeningAnimation(void) { |
Line 687... | Line 695... | ||
687 | gCountdown = 0; |
695 | gCountdown = 0; |
688 | DRS3StopOutletSound(gPedestrians_outlet); |
696 | DRS3StopOutletSound(gPedestrians_outlet); |
689 | DRS3StartSound(gPedestrians_outlet, 8016); |
697 | DRS3StartSound(gPedestrians_outlet, 8016); |
690 | SpendCredits(gJump_start_fine[gProgram_state.skill_level]); |
698 | SpendCredits(gJump_start_fine[gProgram_state.skill_level]); |
691 | sprintf(s, "%s %d %s", GetMiscString(gProgram_state.frank_or_anniness == eFrankie ? kMiscString_BadBoy : kMiscString_BadGirl), gJump_start_fine[gProgram_state.skill_level], GetMiscString(kMiscString_CreditFine)); |
699 | sprintf(s, "%s %d %s", GetMiscString(gProgram_state.frank_or_anniness == eFrankie ? kMiscString_BadBoy : kMiscString_BadGirl), gJump_start_fine[gProgram_state.skill_level], GetMiscString(kMiscString_CreditFine)); |
692 | NewTextHeadupSlot( |
700 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, s); |
693 | } |
701 | } |
694 | } |
702 | } |
695 | 703 | ||
696 | // IDA: void __cdecl GoingToInterfaceFromRace() |
704 | // IDA: void __cdecl GoingToInterfaceFromRace() |
697 | void GoingToInterfaceFromRace(void) { |
705 | void GoingToInterfaceFromRace(void) { |