Ooops, forgot to change the return statement.
Cette révision appartient à :
Parent
29cc59de3a
révision
7023fed46f
|
@ -6,7 +6,7 @@ local function signed(c)
|
|||
QuestHelper: Assert(not c or c >= -127 and c < 127)
|
||||
if not c then c = -128 end
|
||||
if c < 0 then c = c + 256 end
|
||||
return tostring(c)
|
||||
return c
|
||||
--return strchar(c)
|
||||
end
|
||||
|
||||
|
@ -14,7 +14,7 @@ local function float(c)
|
|||
if not c then c = -128 end
|
||||
QuestHelper: Assert( c >= -128, string.format("c is too small. It is %s.", tostring(c)))
|
||||
QuestHelper: Assert( c < 128, string.format("c is too big. It is %s.", tostring(c)))
|
||||
return tostring(c)
|
||||
return c
|
||||
end
|
||||
|
||||
local function BolusizeLocation(delayed, c, z, x, y)
|
||||
|
@ -24,7 +24,14 @@ local function BolusizeLocation(delayed, c, z, x, y)
|
|||
-- Also, any nil values are being turned into MIN_WHATEVER.
|
||||
local float_x = float(x)
|
||||
local float_y = float(y)
|
||||
return string.format("%s,%s,%s,%s,%s", signed(delayed and 1 or 0), signed(c), signed(z), float_x, float_y)
|
||||
local loc = {}
|
||||
loc["delayed"] = signed(delayed and 1 or 0)
|
||||
loc["c"] = signed(c)
|
||||
loc["z"] = signed(z)
|
||||
loc["x"] = float_x
|
||||
loc["y"] = float_y
|
||||
return loc;
|
||||
--return string.format("%s,%s,%s,%s,%s", signed(delayed and 1 or 0), signed(c), signed(z), float_x, float_y)
|
||||
--return signed(delayed and 1 or 0) .. signed(c) .. signed(z) .. float_x .. float_y
|
||||
end
|
||||
|
||||
|
|
Référencer dans un nouveau ticket