diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-23 20:11:20 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-23 20:11:20 +0100 |
commit | 7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54 (patch) | |
tree | 6f9c122e0abdb4949a3c102b2245d007969d6091 /game/gamestate.cpp | |
parent | Don't create lots of unnecessary tmps (diff) | |
parent | Adjust light colour as sun rises/sets (diff) | |
download | ilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.tar.bz2 ilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.tar.xz ilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.zip |
Merge branch 'sunpos'
Diffstat (limited to 'game/gamestate.cpp')
-rw-r--r-- | game/gamestate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/gamestate.cpp b/game/gamestate.cpp index fcd4248..910e8a7 100644 --- a/game/gamestate.cpp +++ b/game/gamestate.cpp @@ -1,4 +1,5 @@ #include "gamestate.h" +#include "environment.h" #include <cassert> GameState * gameState {nullptr}; @@ -7,6 +8,8 @@ GameState::GameState() { assert(!gameState); gameState = this; + + environment = world.create<Environment>(); } GameState::~GameState() |