DiD: Use the FADE macros just moved into core,

...rather than hand-rolled equivalents.
This commit is contained in:
Eric S. Raymond 2008-02-26 22:35:17 +00:00
parent 93ead85e99
commit 50b729ce29
2 changed files with 4 additions and 31 deletions

View File

@ -235,25 +235,7 @@
fire_event=no
[/kill]
# this is used for fading the screen to black and back
#define FADE_STEP LIGHTNESS DELAY
[colour_adjust]
red,green,blue={LIGHTNESS},{LIGHTNESS},{LIGHTNESS}
[/colour_adjust]
[redraw]
[/redraw]
#enddef
{FADE_STEP -32 5}
{FADE_STEP -64 5}
{FADE_STEP -96 5}
{FADE_STEP -128 5}
{FADE_STEP -160 5}
{FADE_STEP -192 5}
{FADE_STEP -224 5}
{FADE_STEP -255 5}
{FADE_TO_BLACK}
[redraw]
[/redraw]
@ -262,16 +244,7 @@
{DIALOGUE_DID_LICH1}
{FADE_STEP -224 5}
{FADE_STEP -192 5}
{FADE_STEP -160 5}
{FADE_STEP -128 5}
{FADE_STEP -96 5}
{FADE_STEP -64 5}
{FADE_STEP -32 5}
{FADE_STEP 0 5}
#undef FADE_STEP
{FADE_IN}
# and is reborn as a lich
[unit]

View File

@ -486,8 +486,8 @@
#enddef
#The macro that the following fade to black macros rely on
#define FADE_STEP LIGHTNESS DELAY
{FADE_STEP_RGB LIGHTNESS LIGHTNESS LIGHTNESS DELAY}
#define FADE_STEP NUMBER DELAY
{FADE_STEP_RGB {NUMBER} {NUMBER} {NUMBER} {DELAY}}
#enddef
#define FADE_TO_BLACK