mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-27 06:42:23 +00:00
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:
parent
1c28f34cee
commit
43fa3a1be7
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue