mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-30 03:32:58 +00:00
Hyudoro: toggle shadow in hovering stack so multiple shadows are not rendered
This commit is contained in:
parent
1cd0781648
commit
43ca8a2f4c
1 changed files with 19 additions and 0 deletions
|
|
@ -131,6 +131,13 @@ bob_in_place
|
|||
(ANGLE_MAX / bob_speed), -(3*FRACUNIT/4));
|
||||
}
|
||||
|
||||
static void
|
||||
reset_shadow (mobj_t *hyu)
|
||||
{
|
||||
hyu->shadowcolor = 15;
|
||||
hyu->whiteshadow = true;
|
||||
}
|
||||
|
||||
static void
|
||||
project_hyudoro (mobj_t *hyu)
|
||||
{
|
||||
|
|
@ -371,6 +378,16 @@ append_hyudoro
|
|||
|
||||
hyudoro_stackpos(hyu) = lastpos + 1;
|
||||
P_SetTarget(head, hyu);
|
||||
|
||||
/* only first in list gets a shadow */
|
||||
if (lastpos == 0)
|
||||
{
|
||||
reset_shadow(hyu);
|
||||
}
|
||||
else
|
||||
{
|
||||
hyu->shadowcolor = 31;/* black - hide it */
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -399,6 +416,8 @@ pop_hyudoro (mobj_t **head)
|
|||
return;
|
||||
}
|
||||
|
||||
reset_shadow(hyu);/* show it */
|
||||
|
||||
do
|
||||
{
|
||||
INT32 thispos = hyudoro_stackpos(hyu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue