rot fix (9) part (9) what does not you can only make you strongest

This commit is contained in:
Ben Russell (300178622) 2015-02-06 11:21:42 +13:00
parent 875c93af97
commit 1f8c8e0945
2 changed files with 5 additions and 1 deletions

View File

@ -403,7 +403,7 @@ function bhealth_damage(x,y,z,amt,plr)
blk.qidx = bhealth.tail
if client then
local block_particlecount = (math.random() * 20 + 10)*0 -- disabling particles to help fix rot
local block_particlecount = (math.random() * 20 + 10)*1 -- disabling particles to help fix rot
--[[
local mdl = new_particle_model(
math.floor(c[2]*light+0.5),

View File

@ -24,9 +24,13 @@ end
function particles_prune(sec_current)
local i
--print("sharticles", particles.head, particles.tail)
for i=particles.head,particles.tail do
if particles[i] and particles[i].dead then
particles[i] = nil
end
if not particles[i] then
if i == particles.head then
particles.head = particles.head + 1
end