Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed object_fix_weapon_ammo_ engine function
(was incorrectly checking Misc "object" type instead of item subtype.)
- Loading branch information
c62aa26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit basically changes the code:
https://github.com/alexbatalov/fallout2-re/blob/main/src/game/object.c#L626
to:
c62aa26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice in theory, but have you tested this fix?
See the condition of the only branch where it gets called:
c62aa26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming
map_data.flags & 0x01
is only true for save game maps? So this correction only happens on initial map load?c62aa26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have tested the fix for misc items. It's only called on first map enter.