diff --git a/data/levels/Level1.xml b/data/levels/Level1.xml
index 019539a..2192918 100644
--- a/data/levels/Level1.xml
+++ b/data/levels/Level1.xml
@@ -12117,6 +12117,7 @@
skydome.obj
skydomeNew.png
+ nightskydome.png
diff --git a/level.cc b/level.cc
index cb34369..edd58a2 100644
--- a/level.cc
+++ b/level.cc
@@ -115,7 +115,7 @@ void Level::update(float runTimeSinceLastUpdate, float runTime, glm::vec2 mouseD
physicsObjects[i]->setRotation(physics.getRotation(i));
}
- skydome->setPosition(glm::vec3(cameraCenter->getPosition().x,
+ skydome.setPosition(glm::vec3(cameraCenter->getPosition().x,
0.0f, cameraCenter->getPosition().z));
if (runTime > 2.0f) {
@@ -205,7 +205,7 @@ void Level::setStrength(float strength) {
this->strength = strength;
}
-void Level::setSkydomeObject(Object* object){
+void Level::setSkydomeObject(Skydome object){
this->skydome = object;
}
@@ -261,6 +261,6 @@ Terrain* Level::getTerrain() {
return &terrain;
}
-Object* Level::getSkydome() {
- return skydome;
+Skydome* Level::getSkydome() {
+ return &skydome;
}
diff --git a/level.hh b/level.hh
index 43e9157..197c6e6 100644
--- a/level.hh
+++ b/level.hh
@@ -10,6 +10,7 @@
#include "camera.hh"
#include "physics.hh"
#include "trigger.hh"
+#include "skydome.hh"
extern "C" {
#include "extern/lua/src/lua.h"
@@ -36,13 +37,13 @@ class Level {
glm::vec4 getFogColour();
void setSkydomeSize(float size);
float getSkydomeSize();
- Object* getSkydome();
+ Skydome* getSkydome();
std::vector