Shorten max snowball life to ten seconds. (#39)

This commit is contained in:
fozolo 2018-08-18 04:23:19 -04:00 committed by HybridDog
parent 036f502968
commit 221c440034

View File

@ -130,8 +130,8 @@ end
--Snowball_entity.on_step()--> called when snowball is moving.
function snow_snowball_ENTITY.on_step(self, dtime)
self.timer = self.timer + dtime
if self.timer > 600 then
-- 10 minutes are too long for a snowball to fly somewhere
if self.timer > 10 then
-- 10 seconds is too long for a snowball to fly somewhere
self.object:remove()
return
end