Remove leftover cooldown-related code from ARAY and DRAY
This commit is contained in:
parent
41254a2f95
commit
94353a9a3b
@ -31,7 +31,7 @@ void Element::Element_ARAY()
|
||||
HeatConduct = 0;
|
||||
Description = "Ray Emitter. Rays create points when they collide.";
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
@ -47,10 +47,10 @@ void Element::Element_ARAY()
|
||||
|
||||
static int update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
if (!parts[i].life)
|
||||
{
|
||||
for (int rx = -1; rx <= 1; rx++)
|
||||
{
|
||||
for (int ry = -1; ry <= 1; ry++)
|
||||
{
|
||||
if (BOUNDS_CHECK && (rx || ry))
|
||||
{
|
||||
int r = pmap[y+ry][x+rx];
|
||||
@ -206,5 +206,6 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
//parts[i].life = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ void Element::Element_DRAY()
|
||||
HeatConduct = 0;
|
||||
Description = "Duplicator ray. Replicates a line of particles in front of it.";
|
||||
|
||||
Properties = TYPE_SOLID | PROP_LIFE_DEC;
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
@ -62,10 +62,11 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
copyLength = parts[i].tmp = 0;
|
||||
else if (copyLength > 0)
|
||||
copySpaces++; //strange hack
|
||||
if (!parts[i].life) // only fire when life is 0, but nothing sets the life right now
|
||||
{
|
||||
|
||||
for (int rx = -1; rx <= 1; rx++)
|
||||
{
|
||||
for (int ry = -1; ry <= 1; ry++)
|
||||
{
|
||||
if (BOUNDS_CHECK && (rx || ry))
|
||||
{
|
||||
int r = pmap[y+ry][x+rx];
|
||||
@ -168,5 +169,6 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user