From 297c093d398e7d6e5fcc5dc6ba1056ede25abf6f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Feb 2015 17:57:23 -0500 Subject: Did some lighting and added room name --- src/map.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 10cd313..0dd3e04 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -21,9 +21,9 @@ Map::Map() add_collision(GAME_WIDTH+6, 0, GAME_WIDTH, right, 1); FILE* f = fopen("../maps/bigmap.txt", "r"); - char* mapbuf = (char*) malloc(MAP_WIDTH*MAP_HEIGHT*sizeof(char)); + char* mapbuf = (char*) malloc(MAP_WIDTH*(MAP_HEIGHT-1)*sizeof(char)); - for (int i=0; i