diff -r 38cba347a3a9 -r c503e0c6a740 src/GameState.cc --- a/src/GameState.cc Thu Jan 22 00:28:26 2009 +0200 +++ b/src/GameState.cc Thu Jan 22 01:53:05 2009 +0200 @@ -2,6 +2,7 @@ #include "GameState.hh" #include "Engine.hh" #include "Config.hh" +#include "Error.hh" GameState::GameState (Terrain &terrain) : world(Vector(0, MAP_GRAVITY), Vector(terrain.getWidth(), terrain.getHeight()), terrain), @@ -49,7 +50,8 @@ if (event_handler) event_handler->on_player_left(player); } - + +#if GRAPHICS_ENABLED void GameState::draw (graphics::Display &display, PixelCoordinate camera, bool displayWeapon) { // Draw terrain terrain.draw(display, camera); @@ -70,4 +72,5 @@ (*it)->draw(display, camera); } } - +#endif +