mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 13:56:21 +00:00
game logic
This commit is contained in:
@ -84,6 +84,7 @@ do {\
|
||||
|
||||
#define WriteSaveDataBlock(save_func)\
|
||||
do {\
|
||||
size = 0;\
|
||||
buf = work_buff;\
|
||||
reserved = 0;\
|
||||
MakeSpaceForSizeInBufferPointer(presize, buf, postsize);\
|
||||
@ -192,6 +193,7 @@ GenericSave(int file)
|
||||
// Save the rest
|
||||
WriteSaveDataBlock(CPools::SavePedPool);
|
||||
WriteSaveDataBlock(CGarages::Save);
|
||||
WriteSaveDataBlock(CGameLogic::Save);
|
||||
WriteSaveDataBlock(CPools::SaveVehiclePool);
|
||||
WriteSaveDataBlock(CPools::SaveObjectPool);
|
||||
WriteSaveDataBlock(ThePaths.Save);
|
||||
@ -306,6 +308,8 @@ GenericLoad()
|
||||
LoadSaveDataBlock();
|
||||
ReadDataFromBlock("Loading Garages \n", CGarages::Load);
|
||||
LoadSaveDataBlock();
|
||||
ReadDataFromBlock("Loading GameLogic \n", CGameLogic::Load);
|
||||
LoadSaveDataBlock();
|
||||
ReadDataFromBlock("Loading Vehicles \n", CPools::LoadVehiclePool);
|
||||
LoadSaveDataBlock();
|
||||
CProjectileInfo::RemoveAllProjectiles();
|
||||
|
Reference in New Issue
Block a user