mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
weapons.con.sample: Fix three C to CON porting bugs. Thanks to Fox for the reports.
(Modders who used an older version: Take a look at the SVN diff, the fixes can easily be applied by hand.) git-svn-id: https://svn.eduke32.com/eduke32@3577 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
85f6a64deb
commit
1ad01dbce4
1 changed files with 22 additions and 12 deletions
|
@ -470,7 +470,7 @@ state draw_rpg // RPG_WEAPON:
|
|||
|
||||
setvarvar hud_x weapon_xoffset
|
||||
setvarvar hud_y looking_arc
|
||||
shiftvarl looking_arc 1
|
||||
shiftvarl hud_y 1
|
||||
subvarvar hud_y gun_pos
|
||||
|
||||
setvarvar hud_temp weaponcount
|
||||
|
@ -662,7 +662,7 @@ state draw_chaingun // CHAINGUN_WEAPON:
|
|||
addvarvar hud_y hud_temp
|
||||
|
||||
getactor[playerid].pal hud_temp
|
||||
ifvarn hud_pal 1
|
||||
ifvarn hud_temp 1
|
||||
{
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
|
@ -1323,6 +1323,10 @@ state draw_freezer // FREEZE_WEAPON:
|
|||
andvar hud_temp 3
|
||||
|
||||
addvarvar hud_x hud_temp
|
||||
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
|
||||
addvarvar hud_y hud_temp
|
||||
}
|
||||
|
||||
|
@ -1395,15 +1399,18 @@ state draw_expander // GROW_WEAPON:
|
|||
{
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
}
|
||||
else
|
||||
setvar hud_temp 0
|
||||
|
||||
addvarvar hud_x hud_temp
|
||||
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
|
||||
subvarvar hud_y hud_temp
|
||||
}
|
||||
|
||||
addvar hud_x 184
|
||||
|
||||
addvar hud_y 240
|
||||
subvarvar hud_y hud_temp
|
||||
|
||||
setvarvar hud_tilenum weaponcount
|
||||
andvar hud_tilenum 3
|
||||
|
@ -1494,15 +1501,18 @@ state draw_shrinker // SHRINKER_WEAPON:
|
|||
{
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
}
|
||||
else
|
||||
setvar hud_temp 0
|
||||
|
||||
addvarvar hud_x hud_temp
|
||||
|
||||
displayrand hud_temp
|
||||
andvar hud_temp 3
|
||||
|
||||
subvarvar hud_y hud_temp
|
||||
}
|
||||
|
||||
addvar hud_x 184
|
||||
|
||||
addvar hud_y 240
|
||||
subvarvar hud_y hud_temp
|
||||
|
||||
setvarvar hud_tilenum weaponcount
|
||||
andvar hud_tilenum 3
|
||||
|
|
Loading…
Reference in a new issue