aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 3 insertions, 4 deletions
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
+}