]> git.localhorst.tv Git - blobs.git/blobdiff - src/blobs.cpp
standardized logging
[blobs.git] / src / blobs.cpp
index 9a94b96e0f55b87a4855efff5d1d434e0300fa92..01bfb2a8ed7c1fd8c8aa99207c752a2966b49f45 100644 (file)
@@ -24,7 +24,7 @@ struct SwitchPanel {
 
        void operator ()(creature::Creature &c) {
                if (planet.Creatures().empty()) {
-                       std::cout << "no more creatures, game over" << std::endl;
+                       planet.GetSimulation().Log() << "no more creatures, game over" << std::endl;
                        state.GetCreaturePanel().Hide();
                        while (app.HasState()) {
                                app.PopState();
@@ -115,6 +115,7 @@ int main(int argc, char *argv[]) {
        //      .Orbital(glm::vec3(-500.0f, 500.0f, 500.0f))
        //;
        state.GetCreaturePanel().Show(*blob);
+       state.GetTimePanel().SetBody(planet);
 
        app::Application app(init.window, init.viewport);
        SwitchPanel swp(planet, app, state);