Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 20
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"
-
 
31
#include <stdlib.h>
30
#include <stdlib.h>
32
 
31
 
33
int gLast_wrong_checkpoint;
32
int gLast_wrong_checkpoint;
34
int gMirror_on__structur = 1; // suffix added to avoid duplicate symbol
33
int gMirror_on__structur = 1; // suffix added to avoid duplicate symbol
35
int gPratcam_on = 1;
34
int gPratcam_on = 1;
Line 94... Line 93...
94
            DRS3StartSound(gPedestrians_outlet, 8011);
93
            DRS3StartSound(gPedestrians_outlet, 8011);
95
            break;
94
            break;
96
        case eRace_over_abandoned:
95
        case eRace_over_abandoned:
97
            if (gNet_mode == eNet_mode_client) {
96
            if (gNet_mode == eNet_mode_client) {
98
                gHost_abandon_game = 1;
97
                gHost_abandon_game = 1;
99
                NetFullScreenMessage(kMiscString_HOST_ABANDONED_RACE, 0);
98
                NetFullScreenMessage(87, 0);
100
            }
99
            }
101
            break;
100
            break;
102
        case eRace_over_out_of_time:
101
        case eRace_over_out_of_time:
103
            ChangeAmbientPratcam(35);
102
            ChangeAmbientPratcam(35);
104
            DoFancyHeadup(kFancyHeadupOutOfTime);
103
            DoFancyHeadup(kFancyHeadupOutOfTime);
Line 448... Line 447...
448
    ReenableNetService();
447
    ReenableNetService();
449
}
448
}
450
 
449
 
451
// IDA: void __cdecl SwapNetCarsDispose()
450
// IDA: void __cdecl SwapNetCarsDispose()
452
void SwapNetCarsDispose(void) {
451
void SwapNetCarsDispose(void) {
453
    int i;
452
    //int i; // Pierre-Marie Baty -- unused variable
454
    LOG_TRACE("()");
453
    LOG_TRACE("()");
455
 
-
 
456
    DisableNetService();
454
    NOT_IMPLEMENTED();
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();
-
 
466
}
455
}
467
 
456
 
468
// IDA: void __cdecl DoGame()
457
// IDA: void __cdecl DoGame()
469
void DoGame(void) {
458
void DoGame(void) {
470
    tSO_result options_result;
459
    tSO_result options_result;