mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 07:30:40 +00:00
weapons.con.sample: fix a potential bug modders may encounter: use the special G_Draw temp variables in G_DrawWeaponTile(_crystal) instead of the ones intended for individual drawing states
git-svn-id: https://svn.eduke32.com/eduke32@1992 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
95d6c6f281
commit
304a2c9feb
1 changed files with 22 additions and 22 deletions
|
@ -166,22 +166,22 @@ state G_DrawWeaponTile
|
||||||
// basic fading between player weapon shades
|
// basic fading between player weapon shades
|
||||||
ifvarvarn hud_shade hud_shadef
|
ifvarvarn hud_shade hud_shadef
|
||||||
{
|
{
|
||||||
setvar hud_temp 0
|
setvar hud_G_Draw_temp 0
|
||||||
ifvare hud_pal 0 setvar hud_temp 1
|
ifvare hud_pal 0 setvar hud_G_Draw_temp 1
|
||||||
ifvarvare hud_pal hud_palf setvar hud_temp 1
|
ifvarvare hud_pal hud_palf setvar hud_G_Draw_temp 1
|
||||||
ifvare hud_temp 1
|
ifvare hud_G_Draw_temp 1
|
||||||
{
|
{
|
||||||
setvarvar hud_temp hud_shade
|
setvarvar hud_G_Draw_temp hud_shade
|
||||||
subvarvar hud_temp hud_shadef
|
subvarvar hud_G_Draw_temp hud_shadef
|
||||||
setvarvar hud_temp2 hud_temp
|
setvarvar hud_G_Draw_temp2 hud_G_Draw_temp
|
||||||
shiftvarr hud_temp 2
|
shiftvarr hud_G_Draw_temp 2
|
||||||
addvarvar hud_shadef hud_temp
|
addvarvar hud_shadef hud_G_Draw_temp
|
||||||
|
|
||||||
ifvare hud_temp 0
|
ifvare hud_G_Draw_temp 0
|
||||||
{
|
{
|
||||||
shiftvarr hud_temp2 1
|
shiftvarr hud_G_Draw_temp2 1
|
||||||
addvarvar hud_shadef hud_temp2
|
addvarvar hud_shadef hud_G_Draw_temp2
|
||||||
ifvare hud_temp2 0
|
ifvare hud_G_Draw_temp2 0
|
||||||
setvarvar hud_shadef hud_shade
|
setvarvar hud_shadef hud_shade
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,17 +199,17 @@ state G_DrawWeaponTile_crystal
|
||||||
// basic fading between player weapon shades
|
// basic fading between player weapon shades
|
||||||
ifvarvarn hud_shade hud_shadef_crystal
|
ifvarvarn hud_shade hud_shadef_crystal
|
||||||
{
|
{
|
||||||
setvarvar hud_temp hud_shade
|
setvarvar hud_G_Draw_temp hud_shade
|
||||||
subvarvar hud_temp hud_shadef_crystal
|
subvarvar hud_G_Draw_temp hud_shadef_crystal
|
||||||
setvarvar hud_temp2 hud_temp
|
setvarvar hud_G_Draw_temp2 hud_G_Draw_temp
|
||||||
shiftvarr hud_temp 2
|
shiftvarr hud_G_Draw_temp 2
|
||||||
addvarvar hud_shadef_crystal hud_temp
|
addvarvar hud_shadef_crystal hud_G_Draw_temp
|
||||||
|
|
||||||
ifvare hud_temp 0
|
ifvare hud_G_Draw_temp 0
|
||||||
{
|
{
|
||||||
shiftvarr hud_temp2 1
|
shiftvarr hud_G_Draw_temp2 1
|
||||||
addvarvar hud_shadef_crystal hud_temp2
|
addvarvar hud_shadef_crystal hud_G_Draw_temp2
|
||||||
ifvare hud_temp2 0
|
ifvare hud_G_Draw_temp2 0
|
||||||
setvarvar hud_shadef_crystal hud_shade
|
setvarvar hud_shadef_crystal hud_shade
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue