modules/world: improve keys sending to player object

This commit is contained in:
Kazhnuz 2019-04-07 22:46:28 +02:00
parent 66d98ab9ea
commit dd1e25969e

View file

@ -104,7 +104,8 @@ end
function BaseWorld:sendInputToPlayers(actor)
for i,v in ipairs(self.players) do
--TODO: make the player get from a selected source inputs
v.actor:getInput(self.scene.keys)
local keys = self.scene.sources[v.sourceid].keys
v.actor:getInput(keys)
end
end