Commit Graph

4 Commits

Author SHA1 Message Date
sago007
e90e80eb92 Some incompatible pointer types 2016-11-27 11:54:01 +01:00
sago007
f5c2b2d71b Hard an brutal reformatting to make it easier to see my changes 2016-11-27 11:40:54 +01:00
sago007
dd2ce7ca1a 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;
```
2016-11-27 10:34:14 +01:00
leilei-
245fea051e Renderer-based particle system (#25)
* A WIP particle system

* - Some more particle refactoring
- an attempt to fix things that went wrong
- trying to integrate fog onto particles (which is currently wrong)
- qpal.h committed (oops)
- Attempt to separate particle rendering from particle moving for future optimization/refactor
2016-11-01 03:30:15 -04:00