From 837eae31e7ddaa3287b7490e30d6e606ffea5337 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 4 May 2008 16:38:18 +0000 Subject: [PATCH] made particles render above water, decals below water git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1869 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protos.h | 16 +++++++++++++++- source/src/rendergl.cpp | 7 +++++-- source/src/renderparticles.cpp | 24 ++++++------------------ 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/source/src/protos.h b/source/src/protos.h index 96cda6a8..7d0d6516 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -398,6 +398,20 @@ extern void show_out_of_renderloop_progress(float bar1, const char *text1, float extern void updatedmgindicator(vec &attack); // renderparticles +enum +{ + PT_PART = 0, + PT_FIREBALL, + PT_SHOTLINE, + PT_DECAL, + PT_BULLETHOLE, + PT_BLOOD, + PT_STAIN, + PT_FLASH +}; + +#define PT_DECAL_MASK ((1<=0; i--) if(parlist[i]) + for(int i = MAXPARTYPES-1; i>=0; i--) if(typemask&(1<