summary refs log tree commit diff stats
path: root/src/components/map_render.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 10:30:50 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 10:30:50 -0400
commit54b664622737740bbb42c13d594b66a21d58ca5f (patch)
treeddf0ca4f0f30773435ea5814c9a46c6001851968 /src/components/map_render.cpp
parentc46db36fe1c319a76cb6bd089b25952db0d98e11 (diff)
downloadtherapy-54b664622737740bbb42c13d594b66a21d58ca5f.tar.gz
therapy-54b664622737740bbb42c13d594b66a21d58ca5f.tar.bz2
therapy-54b664622737740bbb42c13d594b66a21d58ca5f.zip
Removed "../" from file paths
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++)