Skip to content

Commit

Permalink
waitForDoomWork() after sending MSG_CODE_TIC.
Browse files Browse the repository at this point in the history
Else DoomController becomes out of sync with Doom.
See: Farama-Foundation#412
  • Loading branch information
mhe500 committed Oct 23, 2019
1 parent d36cedf commit 6941cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ViZDoomController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ namespace vizdoom {
// Workaround for some problems
this->sendCommand(std::string("map ") + this->map);
this->MQDoom->send(MSG_CODE_TIC);
this->waitForDoomWork();

this->sendCommand(std::string("playdemo ") + prepareLmpFilePath(demoPath));

Expand Down

0 comments on commit 6941cb6

Please sign in to comment.