OpenArena / engine

OpenArena modifications to the ioquake3 engine
http://openarena.ws
GNU General Public License v2.0
212 stars 50 forks source link

Slightly smaller fix. Now with carrige return #28

Closed sago007 closed 7 years ago

sago007 commented 7 years ago

No longer crashes on Linux 64 bit.

I did not know why "cg_leiEnhancement 1" caused the game to crash.

Before I started debugging I just ran through tr_particles.c and fixed a lot of warnings. This also fixed my problem. I think the critical part was:

-int reallyactive;
+particle_t* reallyactive;

The diff makes it a bit hard but another change was:

else if (p->colortype = P_INDEXED)

to

else if (p->colortype == P_INDEXED)

and:

-vec3_t     color;
+vec4_t     color;
sago007 commented 7 years ago

I changed the commit message to match what was written in this pull request.