mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 14:44:08 +00:00
saves part 1
This commit is contained in:
parent
0cf2c8505e
commit
1195f3db7b
11 changed files with 109 additions and 54 deletions
|
@ -39,6 +39,14 @@
|
|||
|
||||
//--MIAMI: file done
|
||||
|
||||
const uint32 CBike::nSaveStructSize =
|
||||
#ifdef COMPATIBLE_SAVES
|
||||
1260;
|
||||
#else
|
||||
sizeof(CBoat);
|
||||
#endif
|
||||
|
||||
|
||||
// TODO: maybe put this somewhere else
|
||||
inline void
|
||||
GetRelativeMatrix(RwMatrix *mat, RwFrame *frm, RwFrame *end)
|
||||
|
@ -2922,3 +2930,19 @@ CBike::ReduceHornCounter(void)
|
|||
if(m_nCarHornTimer != 0)
|
||||
m_nCarHornTimer--;
|
||||
}
|
||||
|
||||
#ifdef COMPATIBLE_SAVES
|
||||
void
|
||||
CBike::Save(uint8*& buf)
|
||||
{
|
||||
CVehicle::Save(buf);
|
||||
SkipSaveBuf(buf, 1260 - 672);
|
||||
}
|
||||
|
||||
void
|
||||
CBike::Load(uint8*& buf)
|
||||
{
|
||||
CVehicle::Load(buf);
|
||||
SkipSaveBuf(buf, 1260 - 672);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue