examples/moveplayer: fix camera2 having the wrong set of coordinate

This commit is contained in:
Kazhnuz 2019-05-02 18:47:36 +02:00
parent bbf8d02254
commit adfa147b72

View file

@ -132,7 +132,7 @@ end
function CameraSystem:getViewPositions(id)
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
elseif (viewNumber > 2) then
return self.views.posList.multi[id].x, self.views.posList.multi[id].y