1
0
mirror of https://github.com/td512/re3.git synced 2026-02-02 12:30:44 +00:00

normalized line endings to LF

This commit is contained in:
aap
2020-04-09 20:50:24 +02:00
parent a5239b554f
commit 34349c4df2
37 changed files with 7717 additions and 7717 deletions

View File

@@ -1,7 +1,7 @@
#include "common.h"
#include "patcher.h"
#include "ModelIndices.h"
#include "Gangs.h"
#include "Gangs.h"
#include "Weapon.h"
//CGangInfo(&CGangs::Gang)[NUM_GANGS] = *(CGangInfo(*)[NUM_GANGS])*(uintptr*)0x6EDF78;
@@ -57,20 +57,20 @@ void CGangs::SaveAllGangData(uint8 *buf, uint32 *size)
{
INITSAVEBUF
*size = SAVE_HEADER_SIZE + sizeof(Gang);
*size = SAVE_HEADER_SIZE + sizeof(Gang);
WriteSaveHeader(buf, 'G','N','G','\0', *size - SAVE_HEADER_SIZE);
for (int i = 0; i < NUM_GANGS; i++)
WriteSaveBuf(buf, Gang[i]);
for (int i = 0; i < NUM_GANGS; i++)
WriteSaveBuf(buf, Gang[i]);
VALIDATESAVEBUF(*size);
}
void CGangs::LoadAllGangData(uint8 *buf, uint32 size)
{
Initialise();
INITSAVEBUF
// original: SkipSaveBuf(buf, SAVE_HEADER_SIZE);
Initialise();
INITSAVEBUF
// original: SkipSaveBuf(buf, SAVE_HEADER_SIZE);
CheckSaveHeader(buf, 'G','N','G','\0', size - SAVE_HEADER_SIZE);
for (int i = 0; i < NUM_GANGS; i++)