|
@@ -1782,7 +1782,7 @@ int TombRaider::Load(char *filename)
|
1782
|
1782
|
mFreadMode = TR_FREAD_NORMAL;
|
1783
|
1783
|
// 0x46464952
|
1784
|
1784
|
|
1785
|
|
- //! \fixme (Endian) Read bitu32 / u_int32_t
|
|
1785
|
+ //! \fixme (Endian) Read bitu32 / uint32_t
|
1786
|
1786
|
Fread(&mNumTR4Samples, 4, 1, f);
|
1787
|
1787
|
printDebug("Load", "mNumTR4Samples = %i", mNumTR4Samples);
|
1788
|
1788
|
|
|
@@ -4931,11 +4931,11 @@ int TombRaider::loadTR5(FILE *f)
|
4931
|
4931
|
unsigned int level_data_sz, riffOffset, seperator0;
|
4932
|
4932
|
unsigned int portalOffset, nextRoomOffset, thisRoomOffset;
|
4933
|
4933
|
int i, j, k;
|
4934
|
|
- u_int16_t us;
|
|
4934
|
+ uint16_t us;
|
4935
|
4935
|
|
4936
|
|
- u_int32_t numMeshData, numMeshPointers, u;
|
4937
|
|
- u_int32_t *meshPointers;
|
4938
|
|
- u_int8_t *meshData;
|
|
4936
|
+ uint32_t numMeshData, numMeshPointers, u;
|
|
4937
|
+ uint32_t *meshPointers;
|
|
4938
|
+ uint8_t *meshData;
|
4939
|
4939
|
char check[32];
|
4940
|
4940
|
|
4941
|
4941
|
printDebug("Load", "mEngineVersion = 0x%x", mPakVersion);
|
|
@@ -5107,7 +5107,7 @@ int TombRaider::loadTR5(FILE *f)
|
5107
|
5107
|
|
5108
|
5108
|
// Mongoose 2002.01.08, Michiel has discovered the
|
5109
|
5109
|
// first 4 bytes here are 2 bitu16 flags for Lara type and weather
|
5110
|
|
- u_int16_t laraType, weather;
|
|
5110
|
+ uint16_t laraType, weather;
|
5111
|
5111
|
|
5112
|
5112
|
Fread(&laraType, 2, 1, f);
|
5113
|
5113
|
printDebug("LoadTR5", "laraType = 0x%x", laraType);
|
|
@@ -5850,7 +5850,7 @@ int TombRaider::loadTR5(FILE *f)
|
5850
|
5850
|
// Use pointers array to index in meshData array for tr5_mesh_t's
|
5851
|
5851
|
Fread(&numMeshPointers, 4, 1, f);
|
5852
|
5852
|
printDebug("LoadTR5", "numMeshPointers = %u", numMeshPointers);
|
5853
|
|
- meshPointers = new u_int32_t[numMeshPointers];
|
|
5853
|
+ meshPointers = new uint32_t[numMeshPointers];
|
5854
|
5854
|
Fread(meshPointers, 4, numMeshPointers, f);
|
5855
|
5855
|
|
5856
|
5856
|
Fread(&numAnimationsTR5, 4, 1, f);
|
|
@@ -5885,7 +5885,7 @@ int TombRaider::loadTR5(FILE *f)
|
5885
|
5885
|
Fread(&u, 4, 1, f);
|
5886
|
5886
|
_num_frames = u;
|
5887
|
5887
|
printDebug("LoadTR5", "_num_frames = %u", _num_frames);
|
5888
|
|
- _frames = new u_int16_t[_num_frames];
|
|
5888
|
+ _frames = new uint16_t[_num_frames];
|
5889
|
5889
|
Fread(_frames, 2, _num_frames, f);
|
5890
|
5890
|
|
5891
|
5891
|
Fread(&numMoveablesTR5, 4, 1, f);
|
|
@@ -6068,7 +6068,7 @@ int TombRaider::loadTR5(FILE *f)
|
6068
|
6068
|
fseek(f, u, SEEK_SET);
|
6069
|
6069
|
}
|
6070
|
6070
|
|
6071
|
|
- //! \fixme (Endian) Read bitu32 / u_int32_t
|
|
6071
|
+ //! \fixme (Endian) Read bitu32 / uint32_t
|
6072
|
6072
|
Fread(&mNumTR4Samples, 4, 1, f);
|
6073
|
6073
|
printDebug("Load", "mNumTR4Samples = %i", mNumTR4Samples);
|
6074
|
6074
|
|