summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.c b/init.c
index d5407cd..53e1eb4 100644
--- a/init.c
+++ b/init.c
@@ -5,6 +5,7 @@
#include <zoom/texture.h>
#include <zoom/level.h>
#include <zoom/light.h>
+#include <zoom/player.h>
LEVEL *level;
GLuint sphere;
@@ -13,6 +14,8 @@ GLuint lightmap;
extern TEXLIST *texlist;
+extern PLAYER player;
+
int InitGame() {
LIGHT light = {LIGHT_POINT, {15.0, 15.0, 15.0}, {0.0, 0.0, 0.0}};
@@ -59,6 +62,8 @@ int InitGame() {
level = LoadLevel("level.lvl");
+ player.pos = level->info->start;
+
sphere = glGenLists(1);
glNewList(sphere, GL_COMPILE);
glRotatef(90, 1.0, 0.0, 0.0);