Skip to content

Commit 8c0b26b

Browse files
committed
Merge branch 'transparent-flag-for-defence' into staging
2 parents 4800d8b + 221ad53 commit 8c0b26b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

csqc/pmove.qc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,8 @@ static void ParseCvars() {
928928

929929
#define MUX_IN(ef, bit, src) \
930930
do { if ((ef) & (bit)) { rad = max(rad, src.i); col += src.v; } } while (0)
931-
static void LocalEffects() {
932-
float effects = pstate_server.effects;
931+
932+
void LocalEffects(float effects, vector org) {
933933
float rad = 0;
934934
vector col = '0 0 0';
935935

@@ -946,7 +946,7 @@ static void LocalEffects() {
946946
MUX_IN(effects, EF_BLUE, bluelight_l);
947947

948948
rad = min(rad, 400);
949-
dynamiclight_add(pm.vieworg, rad, col);
949+
dynamiclight_add(org, rad, col, 0, "", 0);
950950
}
951951
#undef MUX_IN
952952

@@ -958,7 +958,7 @@ void PM_UpdateView() {
958958
makevectors(view_angles);
959959
SetListener(pm.vieworg, v_forward, v_right, v_up);
960960

961-
LocalEffects();
961+
LocalEffects(pstate_server.effects, pm.vieworg);
962962
}
963963

964964
////////////////////////////////////////////////////////////////////////////////

csqc/tfx.qc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ float UpdateFlag(float isnew) {
260260

261261
/* UpdateFlagOutline(self); */
262262

263+
LocalEffects(self.effects, self.origin);
264+
263265
if (self.skin == team_no) {
264266
local float distance = vlen(self.origin - PM_Org());
265267
self.alpha = min(0.25 + (distance / 200), 1);

0 commit comments

Comments
 (0)