Skip to content

Commit

Permalink
Fixed bug: "TRAP" without "g." in g.draw_magic_map()
Browse files Browse the repository at this point in the history
Traps stayed hidden in spite of the fact that a scroll of magic mapping was used.
  • Loading branch information
katono committed Sep 19, 2014
1 parent 9401598 commit a7ade67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/rogue/room.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ function g.draw_magic_map()
for i = 0, g.DROWS-1 do
for j = 0, g.DCOLS-1 do
local s = g.dungeon[i][j]
if s[g.HORWALL] or s[g.VERTWALL] or s[g.DOOR] or s[g.TUNNEL] or s[TRAP] or
if s[g.HORWALL] or s[g.VERTWALL] or s[g.DOOR] or s[g.TUNNEL] or s[g.TRAP] or
s[g.STAIRS] or s[g.MONSTER] then
local ch = g.mvinch(i, j)
if ch == ' ' or ch:find('^[A-Z]$') or s[TRAP] or s[g.HIDDEN] then
if ch == ' ' or ch:find('^[A-Z]$') or s[g.TRAP] or s[g.HIDDEN] then
local skip = false
local och = ch
g.dungeon[i][j][g.HIDDEN] = nil
Expand Down

0 comments on commit a7ade67

Please sign in to comment.