mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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));
|
(ANGLE_MAX / bob_speed), -(3*FRACUNIT/4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
reset_shadow (mobj_t *hyu)
|
||||||
|
{
|
||||||
|
hyu->shadowcolor = 15;
|
||||||
|
hyu->whiteshadow = true;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
project_hyudoro (mobj_t *hyu)
|
project_hyudoro (mobj_t *hyu)
|
||||||
{
|
{
|
||||||
|
|
@ -371,6 +378,16 @@ append_hyudoro
|
||||||
|
|
||||||
hyudoro_stackpos(hyu) = lastpos + 1;
|
hyudoro_stackpos(hyu) = lastpos + 1;
|
||||||
P_SetTarget(head, hyu);
|
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
|
static void
|
||||||
|
|
@ -399,6 +416,8 @@ pop_hyudoro (mobj_t **head)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reset_shadow(hyu);/* show it */
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
INT32 thispos = hyudoro_stackpos(hyu);
|
INT32 thispos = hyudoro_stackpos(hyu);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue