Rev 1 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 18 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | #include "pratcam.h" |
25 | #include "pratcam.h" |
26 | #include "racestrt.h" |
26 | #include "racestrt.h" |
27 | #include "racesumm.h" |
27 | #include "racesumm.h" |
28 | #include "sound.h" |
28 | #include "sound.h" |
29 | #include "utility.h" |
29 | #include "utility.h" |
- | 30 | #include "world.h" |
|
30 | #include <stdlib.h> |
31 | #include <stdlib.h> |
31 | 32 | ||
32 | int gLast_wrong_checkpoint; |
33 | int gLast_wrong_checkpoint; |
33 | int gMirror_on__structur = 1; // suffix added to avoid duplicate symbol |
34 | int gMirror_on__structur = 1; // suffix added to avoid duplicate symbol |
34 | int gPratcam_on = 1; |
35 | int gPratcam_on = 1; |
Line 93... | Line 94... | ||
93 | DRS3StartSound(gPedestrians_outlet, 8011); |
94 | DRS3StartSound(gPedestrians_outlet, 8011); |
94 | break; |
95 | break; |
95 | case eRace_over_abandoned: |
96 | case eRace_over_abandoned: |
96 | if (gNet_mode == eNet_mode_client) { |
97 | if (gNet_mode == eNet_mode_client) { |
97 | gHost_abandon_game = 1; |
98 | gHost_abandon_game = 1; |
98 | NetFullScreenMessage( |
99 | NetFullScreenMessage(kMiscString_HOST_ABANDONED_RACE, 0); |
99 | } |
100 | } |
100 | break; |
101 | break; |
101 | case eRace_over_out_of_time: |
102 | case eRace_over_out_of_time: |
102 | ChangeAmbientPratcam(35); |
103 | ChangeAmbientPratcam(35); |
103 | DoFancyHeadup(kFancyHeadupOutOfTime); |
104 | DoFancyHeadup(kFancyHeadupOutOfTime); |
Line 447... | Line 448... | ||
447 | ReenableNetService(); |
448 | ReenableNetService(); |
448 | } |
449 | } |
449 | 450 | ||
450 | // IDA: void __cdecl SwapNetCarsDispose() |
451 | // IDA: void __cdecl SwapNetCarsDispose() |
451 | void SwapNetCarsDispose(void) { |
452 | void SwapNetCarsDispose(void) { |
452 |
|
453 | int i; |
453 | LOG_TRACE("()"); |
454 | LOG_TRACE("()"); |
- | 455 | ||
454 |
|
456 | DisableNetService(); |
- | 457 | for (i = 0; i < gNumber_of_net_players; i++) { |
|
- | 458 | DisposeCar(gNet_players[i].car, gNet_players[i].car_index); |
|
- | 459 | if (gNet_players[i].car_index >= 0) { |
|
- | 460 | gCar_details[gNet_players[i].car_index].ownership = eCar_owner_none; |
|
- | 461 | } |
|
- | 462 | } |
|
- | 463 | ClearOutStorageSpace(&gOur_car_storage_space); |
|
- | 464 | ClearOutStorageSpace(&gNet_cars_storage_space); |
|
- | 465 | ReenableNetService(); |
|
455 | } |
466 | } |
456 | 467 | ||
457 | // IDA: void __cdecl DoGame() |
468 | // IDA: void __cdecl DoGame() |
458 | void DoGame(void) { |
469 | void DoGame(void) { |
459 | tSO_result options_result; |
470 | tSO_result options_result; |