mirror of
https://gitlab.com/Oreolek/duel.git
synced 2024-07-01 06:15:11 +03:00
спрятал lastroom в char
This commit is contained in:
parent
65a09971da
commit
8c703bc8cc
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue