examples/moveplayer: fix camera2 having the wrong set of coordinate
This commit is contained in:
parent
bbf8d02254
commit
adfa147b72
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ end
|
||||||
function CameraSystem:getViewPositions(id)
|
function CameraSystem:getViewPositions(id)
|
||||||
local viewNumber = #self.views.list
|
local viewNumber = #self.views.list
|
||||||
|
|
||||||
if (viewNumber == 2) and (id == 1) or (id == 2) then
|
if (viewNumber == 2) and ((id == 1) or (id == 2)) then
|
||||||
return self.views.posList.dual[id].x, self.views.posList.dual[id].y
|
return self.views.posList.dual[id].x, self.views.posList.dual[id].y
|
||||||
elseif (viewNumber > 2) then
|
elseif (viewNumber > 2) then
|
||||||
return self.views.posList.multi[id].x, self.views.posList.multi[id].y
|
return self.views.posList.multi[id].x, self.views.posList.multi[id].y
|
||||||
|
|
Loading…
Reference in a new issue