LCD bugfix
This commit is contained in:
parent
6dc1bf5515
commit
5f6fbe0282
@ -205,18 +205,12 @@ _sl
|
|||||||
]
|
]
|
||||||
_sr
|
_sr
|
||||||
2
|
2
|
||||||
'
|
|
||||||
_ap
|
|
||||||
1
|
|
||||||
!
|
!
|
||||||
_ex
|
_ex
|
||||||
1
|
1
|
||||||
?
|
?
|
||||||
_qu
|
_qu
|
||||||
4
|
4
|
||||||
@
|
|
||||||
_at
|
|
||||||
5
|
|
||||||
#
|
#
|
||||||
_hs
|
_hs
|
||||||
5
|
5
|
||||||
@ -229,12 +223,6 @@ _pr
|
|||||||
^
|
^
|
||||||
_ca
|
_ca
|
||||||
3
|
3
|
||||||
&
|
|
||||||
_am
|
|
||||||
5
|
|
||||||
*
|
|
||||||
_as
|
|
||||||
3
|
|
||||||
_
|
_
|
||||||
_un
|
_un
|
||||||
3
|
3
|
2
lcd.lua
2
lcd.lua
@ -11,7 +11,7 @@
|
|||||||
]]--
|
]]--
|
||||||
|
|
||||||
-- load characters map
|
-- load characters map
|
||||||
local chars_file = io.open(minetest.get_modpath("digilines").."/characters", "r")
|
local chars_file = io.open(minetest.get_modpath("hyperloop").."/characters.data", "r")
|
||||||
local charmap = {}
|
local charmap = {}
|
||||||
local max_chars = 16
|
local max_chars = 16
|
||||||
if not chars_file then
|
if not chars_file then
|
||||||
|
4
seat.lua
4
seat.lua
@ -46,7 +46,7 @@ local function on_arrival(player, src_pos, dst_pos, snd, radiant)
|
|||||||
})
|
})
|
||||||
-- activate display
|
-- activate display
|
||||||
local station_name = meta:get_string("station_name")
|
local station_name = meta:get_string("station_name")
|
||||||
local text = "Wellcome in | | "..station_name
|
local text = " | Wellcome in | | "..station_name
|
||||||
hyperloop.enter_display(dst_pos, facedir, text)
|
hyperloop.enter_display(dst_pos, facedir, text)
|
||||||
|
|
||||||
-- open the door an the departure station
|
-- open the door an the departure station
|
||||||
@ -139,7 +139,7 @@ local function on_start_travel(pos, node, clicker)
|
|||||||
|
|
||||||
-- activate display
|
-- activate display
|
||||||
local dist = hyperloop.distance(pos, dest_pos)
|
local dist = hyperloop.distance(pos, dest_pos)
|
||||||
local text = "Destination: | "..dest_name.." | Dist: "..dist.." | Arrival in: | "
|
local text = "Destination: | "..dest_name.." | Distance: | "..dist.." m | Arrival in: | "
|
||||||
local atime = 10 + math.floor(dist/200)
|
local atime = 10 + math.floor(dist/200)
|
||||||
hyperloop.enter_display(pos, dest_facedir, text..atime.." sec")
|
hyperloop.enter_display(pos, dest_facedir, text..atime.." sec")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user