Fix obs:gotolonglat (distance parameter work)

pull/3/head
Alexell 2017-02-04 16:11:45 +03:00 committed by Hleb Valoshka
parent dd37f1812a
commit 90f4b6bfbd
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ static int observer_gotolonglat(lua_State* l)
double distance = celx.safeGetNumber(5, WrongType, "Fourth arg to observer:gotolonglat must be a number", defaultDistance);
double travelTime = celx.safeGetNumber(6, WrongType, "Fifth arg to observer:gotolonglat must be a number", 5.0);
distance = distance / KM_PER_LY;
//distance = distance / KM_PER_LY;
Vector3f up = Vector3f::UnitY();
if (lua_gettop(l) >= 7)