Few corrections to netNav and align starNav to recent changes in netNav

This commit is contained in:
Matt Blunt
2016-02-08 20:24:28 +00:00
parent 26f3750b00
commit 7808328601
2 changed files with 107 additions and 90 deletions

10
netNav
View File

@@ -284,8 +284,8 @@ end
function setMap(mapName, mapTimeout)
if type(mapName) ~= "string" then
error("mapName must be string")
if type(mapTimeout) ~= "number" or mapTimeout < 0 then
end
if type(mapTimeout) ~= "number" or mapTimeout < 0 then
error("timeout must be positive number")
end
serverMap = remoteMap.new(mapName, mapTimeout)
@@ -293,4 +293,10 @@ end
function getMap()
return serverMap
end
end
function getPosition()
if position then
return position:value()
end
end