Skip to content

Commit

Permalink
Merge pull request #531 from LoboEire/master
Browse files Browse the repository at this point in the history
Freedoom: wrong dlight colour
  • Loading branch information
dashodanger authored Aug 27, 2023
2 parents 6784b17 + ed568f2 commit 374135a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions edge_base/freedoom1/scripts/things.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,20 @@ STATES(SPAWN) =

SPECIAL = NOBLOCKMAP,NOGRAVITY,DROPOFF,MISSILE;

[BURNING_BARREL:70]
RADIUS=16;
HEIGHT=42;

DLIGHT.TYPE=MODULATE;
DLIGHT.RADIUS=100;
DLIGHT.COLOUR=#3535FF;

SPECIAL=SOLID,PASS_MISSILE,CLIMBABLE,NOSHADOW;

STATES(IDLE)=FCAN:A:4:BRIGHT:NOTHING,
FCAN:B:4:BRIGHT:NOTHING,
FCAN:C:4:BRIGHT:NOTHING;




14 changes: 13 additions & 1 deletion edge_base/freedoom2/scripts/things.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -341,5 +341,17 @@ STATES(SPAWN) =
SPECIAL = NOBLOCKMAP,NOGRAVITY,DROPOFF,MISSILE;



[BURNING_BARREL:70]
RADIUS=16;
HEIGHT=42;

DLIGHT.TYPE=MODULATE;
DLIGHT.RADIUS=100;
DLIGHT.COLOUR=#3535FF;

SPECIAL=SOLID,PASS_MISSILE,CLIMBABLE,NOSHADOW;

STATES(IDLE)=FCAN:A:4:BRIGHT:NOTHING,
FCAN:B:4:BRIGHT:NOTHING,
FCAN:C:4:BRIGHT:NOTHING;

6 changes: 4 additions & 2 deletions source_files/edge/f_interm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -784,13 +784,15 @@ static float TimeWidth(int t, bool drawText = false)

if(drawText == true)
{
float txtscale =wi_sp_style->def->text[styledef_c::T_ALT].scale;

if (t > 3599)
{
return wi_sp_style->fonts[styledef_c::T_ALT]->StringWidth("Sucks");
return wi_sp_style->fonts[styledef_c::T_ALT]->StringWidth("Sucks") * txtscale;
}
else
{
return wi_sp_style->fonts[styledef_c::T_ALT]->StringWidth(s.c_str());
return wi_sp_style->fonts[styledef_c::T_ALT]->StringWidth(s.c_str()) * txtscale;
}
}
else
Expand Down

0 comments on commit 374135a

Please sign in to comment.