summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.c b/init.c
index 2df1763..d5407cd 100644
--- a/init.c
+++ b/init.c
@@ -6,7 +6,7 @@
#include <zoom/level.h>
#include <zoom/light.h>
-LEVEL level;
+LEVEL *level;
GLuint sphere;
GLuint meditex_blue;
GLuint lightmap;
@@ -57,8 +57,8 @@ int InitGame() {
gluQuadricDrawStyle(quadric, GLU_FILL);
gluQuadricTexture(quadric, GL_TRUE);
- LoadLevel("level2.lvl", &level);
-
+ level = LoadLevel("level.lvl");
+
sphere = glGenLists(1);
glNewList(sphere, GL_COMPILE);
glRotatef(90, 1.0, 0.0, 0.0);
@@ -71,6 +71,6 @@ int InitGame() {
}
void UninitGame() {
- FreeLevel(&level);
+ FreeLevel(level);
free(texlist);
}