summary refs log tree commit diff stats
path: root/src/components/map_render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/map_render.cpp')
-rw-r--r--src/components/map_render.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/map_render.cpp b/src/components/map_render.cpp index 3b6b9c4..10c5db8 100644 --- a/src/components/map_render.cpp +++ b/src/components/map_render.cpp
@@ -6,7 +6,7 @@ MapRenderComponent::MapRenderComponent(const Map& map) : screen(GAME_WIDTH, GAME
6{ 6{
7 screen.fill(screen.entirety(), 0, 0, 0); 7 screen.fill(screen.entirety(), 0, 0, 0);
8 8
9 Texture tiles("../res/tiles.png"); 9 Texture tiles("res/tiles.png");
10 10
11 for (int i=0; i<MAP_WIDTH*MAP_HEIGHT; i++) 11 for (int i=0; i<MAP_WIDTH*MAP_HEIGHT; i++)
12 { 12 {
@@ -22,7 +22,7 @@ MapRenderComponent::MapRenderComponent(const Map& map) : screen(GAME_WIDTH, GAME
22 } 22 }
23 } 23 }
24 24
25 Texture font("../res/font.bmp"); 25 Texture font("res/font.bmp");
26 std::string map_name = map.getTitle(); 26 std::string map_name = map.getTitle();
27 int start_x = (40/2) - (map_name.length()/2); 27 int start_x = (40/2) - (map_name.length()/2);
28 for (size_t i=0; i<map_name.length(); i++) 28 for (size_t i=0; i<map_name.length(); i++)