From 87fdac7918d776a4c11b3880eef64b09b334aa1c Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 18:36:24 +0100 Subject: linux build config and imgs --- main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index d6e0255..dc1dc9a 100644 --- a/main.cpp +++ b/main.cpp @@ -44,7 +44,6 @@ int main () { inv.ground.resources.emplace_back(inv.ground.at(3, 4), Resource::Type::gold); inv.ground.resources.emplace_back(inv.ground.at(4, 4), Resource::Type::food); - Gst gst { &inv }; gst.players.emplace_back(255, 0, 0, 0); @@ -72,7 +71,8 @@ int main () { View view (vec2 { (float)graphics.resx, (float)graphics.resy }); vec2 mouselast { 0, 0 }; - + + while(true) { if (com.process_events()) break; if (com.resx != -1) { @@ -104,7 +104,6 @@ int main () { ai::performer perf { gst }; gst = perf.apply(best); } - control.process(gst, view); com.process_keys(); } @@ -114,4 +113,4 @@ int main () { } } return 0; -} \ No newline at end of file +} -- cgit v1.2.3-54-g00ecf