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

Fix crash on big maps

git-svn-id: http://svn.net-core.org/repos/t-engine4@3201 51575b47-30f0-44d4-a5cc-537603b46e54
parent e16bdae7
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ start_game = function(self)
slave.on_die = function(self)
game.player:hasQuest("ring-of-blood"):stop_game(false)
game.log("#CRIMSON#The crowd yells: 'LOOSER!'")
game.log("#CRIMSON#The crowd yells: 'LOSER!'")
end
game.log("#LIGHT_GREEN#As you touch the orb your will fills the slave's body. You take full control of his actions!")
......
......@@ -1329,7 +1329,7 @@ static int minimap_to_screen(lua_State *L)
if ((i < 0) || (j < 0) || (i >= map->w) || (j >= map->h)) continue;
map_object *mo = map->grids[i][j][z];
if (!mo || mo->mm_r < 0) continue;
ptr = (j * map->mm_rw + i) * 4;
ptr = ((j-mdy) * map->mm_rw + (i-mdx)) * 4;
if ((mo->on_seen && map->grids_seens[j*map->w+i]) || (mo->on_remember && map->grids_remembers[i][j]) || mo->on_unknown)
{
......
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