Skip to content
Snippets Groups Projects
Commit eb712db5 authored by dg's avatar dg
Browse files

Resting in water will not suffocate you to death

git-svn-id: http://svn.net-core.org/repos/t-engine4@2524 51575b47-30f0-44d4-a5cc-537603b46e54
parent 26d96f7b
No related branches found
No related tags found
No related merge requests found
......@@ -429,7 +429,7 @@ end
--- Suffocate a bit, lose air
function _M:suffocate(value, src)
local dead, affected = mod.class.Actor.suffocate(self, value, src)
if affected and value < 0 then
if affected and value > 0 then
self:runStop("suffocating")
self:restStop("suffocating")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment