mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
PCExhumed: Fix spark effect when destroying an energy tower.
This commit is contained in:
parent
74fdb6dbcb
commit
1ddcc41ed8
1 changed files with 5 additions and 4 deletions
|
@ -1568,22 +1568,23 @@ void DoFinale()
|
||||||
int BuildEnergyBlock(short nSector)
|
int BuildEnergyBlock(short nSector)
|
||||||
{
|
{
|
||||||
short startwall = sector[nSector].wallptr;
|
short startwall = sector[nSector].wallptr;
|
||||||
|
short nWalls = sector[nSector].wallnum;
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
|
|
||||||
for (int i = 0; i < sector[nSector].wallnum; i++)
|
for (int i = 0; i < nWalls; i++)
|
||||||
{
|
{
|
||||||
x += wall[startwall + i].x;
|
x += wall[startwall + i].x;
|
||||||
y += wall[startwall + i].y;
|
y += wall[startwall + i].y;
|
||||||
|
|
||||||
// wall[startwall + i].picnum = kTile3621;
|
wall[startwall + i].picnum = kTile3621;
|
||||||
wall[startwall + i].pal = 0;
|
wall[startwall + i].pal = 0;
|
||||||
wall[startwall + i].shade = 50;
|
wall[startwall + i].shade = 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
int xAvg = x / 2;
|
int xAvg = x / nWalls;
|
||||||
int yAvg = y / 2;
|
int yAvg = y / nWalls;
|
||||||
|
|
||||||
int nSprite = insertsprite(nSector, 406);
|
int nSprite = insertsprite(nSector, 406);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue