diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-28 03:59:07 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-28 05:12:54 +0300 |
commit | f8297df9c5a7d65d5658d1a8d85d391fbb15b95a (patch) | |
tree | 9dcfac13fc3be99320ca7b546c4ff2007bff4121 /src/control/GameLogic.cpp | |
parent | 3587cb029e179fe08e572811e467227193e423d5 (diff) |
Redo ReadSaveBuf + common.h cleanup
Diffstat (limited to 'src/control/GameLogic.cpp')
-rw-r--r-- | src/control/GameLogic.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/control/GameLogic.cpp b/src/control/GameLogic.cpp index 33c40c91..17802d95 100644 --- a/src/control/GameLogic.cpp +++ b/src/control/GameLogic.cpp @@ -30,6 +30,7 @@ #include "Automobile.h" #include "MBlur.h" #include "screendroplets.h" +#include "SaveBuf.h" uint8 CGameLogic::ActivePlayers; uint8 CGameLogic::ShortCutState; @@ -611,12 +612,12 @@ void CGameLogic::Load(uint8* buf, uint32 size) { INITSAVEBUF - NumAfterDeathStartPoints = ReadSaveBuf<uint32>(buf); + ReadSaveBuf(&NumAfterDeathStartPoints, buf); for (int i = 0; i < NUM_SHORTCUT_START_POINTS; i++) { - AfterDeathStartPoints[i].x = ReadSaveBuf<float>(buf); - AfterDeathStartPoints[i].y = ReadSaveBuf<float>(buf); - AfterDeathStartPoints[i].z = ReadSaveBuf<float>(buf); - AfterDeathStartPointOrientation[i] = ReadSaveBuf<float>(buf); + ReadSaveBuf(&AfterDeathStartPoints[i].x, buf); + ReadSaveBuf(&AfterDeathStartPoints[i].y, buf); + ReadSaveBuf(&AfterDeathStartPoints[i].z, buf); + ReadSaveBuf(&AfterDeathStartPointOrientation[i], buf); } VALIDATESAVEBUF(size) } |