Still won't work

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
4:237c791cc5c0
Parent:
3:44a69b76507d
Child:
5:142e66c8a7fa
--- a/map.cpp	Thu Apr 11 23:48:14 2019 +0000
+++ b/map.cpp	Thu Apr 11 23:55:36 2019 +0000
@@ -48,8 +48,8 @@
     // Set width & height
     HashTable* ht = createHashTable(&map_hash, 50);
     map.items = ht;
-    map.w = 50;
-    map.h = 50;
+    map.w = map_width();
+    map.h = map_height();
 }
 
 Map* get_active_map()
@@ -92,7 +92,7 @@
 
 int map_area()
 {
-    return 2500;
+    return map_width()*map_height();
 }
 
 MapItem* get_north(int x, int y)