Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

Fix the problem that GetGameLoop() doesn't return the right loop number in the frame just after Control()->Restart() #327

Closed monarchBacilluscoli closed 2 months ago

monarchBacilluscoli commented 4 years ago

Just added Control()->GetObservation(); in AgentControlImp::Restart()

alkurbatov commented 4 years ago

@monarchBacilluscoli thank you. Merged you patch to my fork at https://github.com/alkurbatov/cpp-sc2/commit/e94baa24897b7035f906a6b39e9fea02b2be31b4