summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Game.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-06 21:35:26 +0200
committerAki <please@ignore.pl>2022-04-06 21:53:53 +0200
commit4d7ca74c55edff30e34df1c36824a128211bfeb8 (patch)
tree807e794e2f85cfb3a817a6bd2e3158b7899b48b9 /StarsEx/Game.cpp
parent947910fc3c541ffdab3b042cfa3a3926b64f0ba3 (diff)
downloadstarshatter-4d7ca74c55edff30e34df1c36824a128211bfeb8.zip
starshatter-4d7ca74c55edff30e34df1c36824a128211bfeb8.tar.gz
starshatter-4d7ca74c55edff30e34df1c36824a128211bfeb8.tar.bz2
Moved world ownership to concrete game classes
Diffstat (limited to 'StarsEx/Game.cpp')
-rw-r--r--StarsEx/Game.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/StarsEx/Game.cpp b/StarsEx/Game.cpp
index 3d3315e..54f9204 100644
--- a/StarsEx/Game.cpp
+++ b/StarsEx/Game.cpp
@@ -28,7 +28,6 @@ Game* Game::instance {nullptr};
Game::Game() :
- world {nullptr},
status {OK},
exit_code {0},
game_mode {MENU_MODE},
@@ -48,7 +47,6 @@ Game::Game() :
Game::~Game()
{
Clock::Close();
- if (world) delete world;
if (instance == this)
instance = nullptr;
}
@@ -155,8 +153,6 @@ Game::GameLoop()
void
Game::UpdateWorld()
{
- if (world)
- world->ExecFrame(Clock::GetInstance()->Delta());
}
// +--------------------------------------------------------------------+