From 1ad01dbce487cbb26e7d505123334d7e2f1fafca Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 19 Mar 2013 06:22:33 +0000 Subject: [PATCH] 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 --- .../package/samples/weapons.con.sample | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/polymer/eduke32/package/samples/weapons.con.sample b/polymer/eduke32/package/samples/weapons.con.sample index 3a06aa7d1..31579d7e7 100644 --- a/polymer/eduke32/package/samples/weapons.con.sample +++ b/polymer/eduke32/package/samples/weapons.con.sample @@ -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 + 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 + 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