games/example/lib/npc.rb in game_machine-0.0.9 vs games/example/lib/npc.rb in game_machine-0.0.10

- old
+ new

@@ -71,10 +71,10 @@ def get_players commands.grid.neighbors(position.x,position.y).each do |player| if @players[player.id] @players[player.id][:vector].x = player.x @players[player.id][:vector].y = player.y - @players[player.id][:vector].z = 0 + @players[player.id][:vector].z = player.z else @players[player.id] = {:id => player.id, :vector => GameMachine::Vector.from(player)} end end end