1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-06-29 05:15:10 +03:00

спрятал lastroom в char

This commit is contained in:
Alexander Yakovlev 2017-02-21 21:17:21 +07:00
parent 65a09971da
commit 8c703bc8cc

View file

@ -4,7 +4,6 @@ require "format"
require "dlg"
require 'dbg' -- ПОЧЕМУ-ТО НЕ РАБОТАЕТ
require 'tools'
declare "lastroom" ("")
declare "char" ({})
-- require 'hideinv'
format.dash = true
@ -29,12 +28,12 @@ room {
disp = "Карта",
hideinv = true,
enter = function (here, from)
lastroom = from.nam
char.lastroom = from.nam
end,
pic = function()
local map = 'images/satellite.jpg'
if markers[lastroom] then
map = map .. ';images/marker.png@' .. markers[lastroom]
if markers[char.lastroom] then
map = map .. ';images/marker.png@' .. markers[char.lastroom]
end
return map
end,