summaryrefslogtreecommitdiffhomepage
path: root/not/Camera.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-07 05:25:01 +0200
committerAki <nthirtyone@gmail.com>2017-09-07 05:25:01 +0200
commitb4254d4281cae95d72c5c8ae12119494d97f1802 (patch)
treef362a789b0cf7d39f6a23e54c7c0515640aea45e /not/Camera.lua
parent58e6962593cadd4cfc1dd4028ce3b272814fe3f3 (diff)
downloadroflnauts-b4254d4281cae95d72c5c8ae12119494d97f1802.zip
roflnauts-b4254d4281cae95d72c5c8ae12119494d97f1802.tar.gz
roflnauts-b4254d4281cae95d72c5c8ae12119494d97f1802.tar.bz2
Removed tables for specific objects and replaced references with proper method calls
Diffstat (limited to 'not/Camera.lua')
-rw-r--r--not/Camera.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Camera.lua b/not/Camera.lua
index 183a323..6e07372 100644
--- a/not/Camera.lua
+++ b/not/Camera.lua
@@ -109,7 +109,7 @@ end
function Camera:follow ()
local map = self.world.map
local sum_x,sum_y,i = map.center.x, map.center.y, 1
- for k,naut in pairs(self.world.Nauts) do
+ for k,naut in pairs(self.world:getNautsAll()) do
local naut_x,naut_y = naut:getPosition()
if math.abs(naut_x - map.center.x) < map.width/2 and
math.abs(naut_y - map.center.y) < map.height/2 then