Remove pmap hack in BOMB.cpp
This commit is contained in:
parent
ed9d405742
commit
888e0f2065
@ -64,7 +64,7 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
{
|
{
|
||||||
int rad = 8, nt;
|
int rad = 8, nt;
|
||||||
int nxi, nxj;
|
int nxi, nxj;
|
||||||
pmap[y][x] = 0;
|
sim->kill_part(i);
|
||||||
for (nxj=-rad; nxj<=rad; nxj++)
|
for (nxj=-rad; nxj<=rad; nxj++)
|
||||||
for (nxi=-rad; nxi<=rad; nxi++)
|
for (nxi=-rad; nxi<=rad; nxi++)
|
||||||
if ((pow((float)nxi,2))/(pow((float)rad,2))+(pow((float)nxj,2))/(pow((float)rad,2))<=1)
|
if ((pow((float)nxi,2))/(pow((float)rad,2))+(pow((float)nxj,2))/(pow((float)rad,2))<=1)
|
||||||
@ -103,7 +103,6 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
parts[nb].vy = float(RNG::Ref().between(-20, 20));
|
parts[nb].vy = float(RNG::Ref().between(-20, 20));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sim->kill_part(i);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user