Skip to content

Commit

Permalink
Update update_objects.c (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaMech authored Apr 21, 2024
1 parent cda6a50 commit a620e1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/update_objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -4189,13 +4189,13 @@ UNUSED void func_8007C49C(void) {
void func_8007C4A4(s32 objectIndex) {
u16 var_t9;

var_t9 = gObjectList[objectIndex].unk_0BE[1] * 0x24 / 0x10000;
var_t9 = gObjectList[objectIndex].direction_angle[1] * 0x24 / 0x10000;

if (var_t9 < 0x13) {
set_object_flag_unk_054_false(objectIndex, 0x80);
set_object_flag_status_false(objectIndex, 0x80);
gObjectList[objectIndex].itemDisplay = var_t9;
} else {
set_object_flag_unk_054_true(objectIndex, 0x80);
set_object_flag_status_true(objectIndex, 0x80);
gObjectList[objectIndex].itemDisplay = 0x24 - var_t9;
}
}
Expand Down

0 comments on commit a620e1e

Please sign in to comment.