Skip to content

Commit

Permalink
Merge pull request #956 from NimbusBP1729/fish_cant_drown
Browse files Browse the repository at this point in the history
allows fish to survive water
  • Loading branch information
Jordan Hoff committed Mar 10, 2013
2 parents 30276e7 + 5da078a commit 48121e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nodes/liquid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ end
function Liquid:collide(node, dt, mtv_x, mtv_y)
if node.isEnemy then
local enemy = node
if enemy.props.name == "fish" then return end
if (self.death) or (self.drown and enemy.position.y >= self.position.y) then
enemy:die()
end
Expand Down

0 comments on commit 48121e3

Please sign in to comment.