Fix cea7095, so that particles aren't renderes as some kind of dust.

This also simplifies the code a little bit by removing unnecessary (and
broken) pointer magic.
This commit is contained in:
Yamagi 2020-01-02 15:16:08 +01:00
parent 1c28f34cee
commit 43fa3a1be7

View file

@ -102,7 +102,15 @@ R_InitParticleTexture(void)
partData[y][x][0] = 255;
partData[y][x][1] = 255;
partData[y][x][2] = 255;
partData[y][x][3] = *sourcetexture[x][y] * 85;
if (!gl1_particle_square->value)
{
partData[y][x][3] = dottexture[x][y] * 85;
}
else
{
partData[y][x][3] = squaretexture[x][y] * 85;
}
}
}