--- a/src/Player.cc Thu Jan 22 00:28:26 2009 +0200
+++ b/src/Player.cc Thu Jan 22 01:53:05 2009 +0200
@@ -11,11 +11,15 @@
#include <string>
#include <cassert>
-
-// player static state
+#if GRAPHICS_ENABLED
+/*
+ * Static draw-related state
+ */
bool Player::skin_loaded = false;
CL_Surface Player::skin_surface;
+#endif
+
// XXX: give these better names and move elsewhere
const int img_num_aim = 5;
const int img_num_step = 4;
@@ -325,6 +329,7 @@
kills++;
}
+#if GRAPHICS_ENABLED
void Player::draw (graphics::Display &display, PixelCoordinate camera) {
CL_GraphicContext *gc = display.get_gc();
@@ -399,4 +404,5 @@
);
}
}
+#endif