Browse Source

Fix SetPlayerGPtrs with RUN_TESTS definied

pull/2896/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
261403558b
  1. 4
      Source/player.cpp

4
Source/player.cpp

@ -395,14 +395,14 @@ void StartWalk(int pnum, Displacement vel, Direction dir, bool pmWillBeCalled)
void SetPlayerGPtrs(const char *path, std::unique_ptr<byte[]> &data, std::array<std::optional<CelSprite>, 8> &anim, int width)
{
data = nullptr;
#ifndef RUN_TESTS
data = LoadFileInMem(path);
if (data == nullptr && gbQuietMode)
return;
for (int i = 0; i < 8; i++) {
byte *pCelStart = CelGetFrame(data.get(), i);
anim[i].emplace(pCelStart, width);
}
#endif
}
void ClearStateVariables(Player &player)

Loading…
Cancel
Save