ref: b5983c825fe0bad9618458363e943550b4afb212
parent: 4c1435a0346ab111b5d9fec0abf5910952b7950e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Dec 15 11:35:55 EST 2023
bsp30: "rendermode 5" -> EF_ADDITIVE
--- a/pr_edict.c
+++ b/pr_edict.c
@@ -827,17 +827,20 @@
key = ED_FindField (pr, keyname);
if (!key)
{
- if(strcmp(keyname, "alpha") == 0)
+ if(strcmp(keyname, "alpha") == 0){
ent->alpha = f2alpha(atof(com_token));
- else if(strcmp(keyname, "renderamt") == 0){
+ }else if(strcmp(keyname, "renderamt") == 0){
ent->alpha = atoi(com_token);
if(ent->alpha == ZERO_ALPHA)
ent->alpha++;
else if(ent->alpha == 0)
ent->alpha = ZERO_ALPHA;
- ent->alpha = clamp(ent->alpha, 1, 255);
- }else
+ }else if(strcmp(keyname, "rendermode") == 0){
+ if((n = atoi(com_token)) == 5)
+ ent->v.effects = (int)ent->v.effects | EF_ADDITIVE;
+ }else{
Con_Printf ("ED_ParseEdict: '%s' is not a field\n", keyname);
+ }
continue;
}