Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 20
Line 1... Line 1...
1
#include "loadsave.h"
1
#include "loadsave.h"
2
#include "brender.h"
-
 
3
#include "brhton.h"
-
 
4
#include "cutscene.h"
2
#include "cutscene.h"
5
#include "errors.h"
3
#include "errors.h"
6
#include "flicplay.h"
4
#include "flicplay.h"
7
#include "globvars.h"
5
#include "globvars.h"
8
#include "globvrpb.h"
6
#include "globvrpb.h"
Line 17... Line 15...
17
#include "pd/sys.h"
15
#include "pd/sys.h"
18
#include "sound.h"
16
#include "sound.h"
19
#include "structur.h"
17
#include "structur.h"
20
#include "utility.h"
18
#include "utility.h"
21
#include "world.h"
19
#include "world.h"
-
 
20
#include <brender/brender.h>
22
#include <stdlib.h>
21
#include <stdlib.h>
23
#include <string.h>
22
#include <string.h>
24
 
23
 
25
tSave_game* gSaved_games[8];
24
tSave_game* gSaved_games[8];
26
int gStarted_typing;
25
int gStarted_typing;
27
int gSave_allowed;
26
int gSave_allowed;
28
 
27
 
29
#define SAVEGAME_VERSION 6
28
#define SAVEGAME_VERSION 6
30
 
29
 
31
#define SWAP32_BE(V)      \
30
#define SWAP32_BE(V)       \
32
    do {                  \
31
    do {                   \
33
        (V) = BrHtoNL(V); \
32
        (V) = BrHtoNL(V); \
34
    } while (0)
33
    } while (0)
35
 
34
 
36
// IDA: void __usercall CorrectLoadByteOrdering(int pIndex@<EAX>)
35
// IDA: void __usercall CorrectLoadByteOrdering(int pIndex@<EAX>)
37
void CorrectLoadByteOrdering(int pIndex) {
36
void CorrectLoadByteOrdering(int pIndex) {