fix gcc build
This commit is contained in:
@@ -108,7 +108,7 @@ int main(int argc, char** argv) {
|
||||
display.OnKeyDown.Connect([&simulation](SDL_Keycode key){
|
||||
if (key == SDLK_A) {
|
||||
auto spawn = std::make_shared<td::protocol::commands::SpawnTroopCommand>(0, 0, td::Vec2fp{td::FpFloat(77), td::FpFloat(13)}, 0);
|
||||
std::array<td::protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps{};
|
||||
td::Array<td::protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps{};
|
||||
steps[0].push_back(spawn);
|
||||
td::protocol::packets::LockStepsPacket packet{0, steps};
|
||||
simulation.HandlePacket(packet);
|
||||
|
||||
Reference in New Issue
Block a user