Skip to content
Snippets Groups Projects
Commit 930743c1 authored by dg's avatar dg
Browse files

fix map

git-svn-id: http://svn.net-core.org/repos/t-engine4@3242 51575b47-30f0-44d4-a5cc-537603b46e54
parent 79e2d967
No related branches found
No related tags found
No related merge requests found
...@@ -1319,7 +1319,7 @@ static int minimap_to_screen(lua_State *L) ...@@ -1319,7 +1319,7 @@ static int minimap_to_screen(lua_State *L)
int ptr; int ptr;
GLubyte *mm = map->minimap; GLubyte *mm = map->minimap;
memset(mm, 0, mdw * mdh * 4 * sizeof(GLubyte)); memset(mm, 0, map->mm_rw * map->mm_rh * 4 * sizeof(GLubyte));
for (z = 0; z < map->zdepth; z++) for (z = 0; z < map->zdepth; z++)
{ {
for (i = mdx; i < mdx + mdw; i++) for (i = mdx; i < mdx + mdw; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment