level_state: don't get damaged when hitting another plane.. though you'll die anyway.

This commit is contained in:
Erkki Seppälä 2014-10-19 13:15:28 +03:00
parent e4fe8fd5b0
commit 7ff61ac171

View file

@ -177,10 +177,7 @@ function begin_contact(a, b, coll)
end
if other and other:isinstance(Plane) then
plane:receiveDamage(1000)
other:receiveDamage(1000)
plane:getOwner():addScore(SUICIDE_SCORE)
other:getOwner():addScore(SUICIDE_SCORE)
-- nothing
elseif plane then
if other:getOwner() == nil then
-- Collision with ground or other plane