Skip to content

Commit

Permalink
attr var name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronB-Hub committed Sep 22, 2024
1 parent 8125ce4 commit 0ecb818
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/melee/it/itCommonItems.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ typedef struct ItLGunBeamVars {
} ItLGunBeamVars;

typedef struct ItLGunBeamAttr {
float x0; // lifetime - [18]
float x4; // related to position calcs for var xDFC - [1]
float x8; // related to position calcs for var xDFC - [2]
float xC; // related to position calcs for var xDF8 - [1.22173]
float x10; // related to position calcs for var xDF8 - [2/3 * pi]
float lifetime; // lifetime - [18]
float x4; // related to position calcs for var angle1 - [1]
float x8; // related to position calcs for var angle1 - [2]
float xC; // related to position calcs for var angle0 - [1.22173]
float x10; // related to position calcs for var angle0 - [2/3 * pi]
} ItLGunBeamAttr;

/// Eggs spawned on Yoshi stages / by Chansey
Expand Down
4 changes: 2 additions & 2 deletions src/melee/it/items/itlgunbeam.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ void it_802996D0(HSD_GObj* owner_gobj, Vec3* pos, u32 arg2, f32 facing_dir)
item->xC4_article_data->x4_specialAttributes;
item->xDAC_itcmd_var0 = item->xDB0_itcmd_var1 =
item->xDB4_itcmd_var2 = item->xDB8_itcmd_var3 = 0;
item->xDD4_itemVar.lgunbeam.lifetime = item_spec_attr->x0;
it_80275158(gobj, item_spec_attr->x0);
item->xDD4_itemVar.lgunbeam.lifetime = item_spec_attr->lifetime;
it_80275158(gobj, item_spec_attr->lifetime);
item->xDD4_itemVar.lgunbeam.position0 = *pos;
{
float temp = item_spec_attr->x4;
Expand Down

0 comments on commit 0ecb818

Please sign in to comment.