fix: keys input shouldn't bypass keyLocking

This commit is contained in:
Kazhnuz 2019-12-28 21:11:34 +01:00
parent bd37d58b23
commit 63c54525f6

View file

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