Fix some require_object_collected objectives not working

This commit is contained in:
Ryan Dwyer
2024-11-17 09:59:20 +10:00
parent bf3245076d
commit c5f87b4c90
+4
View File
@@ -340,6 +340,8 @@ bool invGiveSingleWeapon(s32 weaponnum)
{
frSetWeaponFound(weaponnum);
g_ObjectivesDirty = true;
if (invHasSingleWeaponExcAllGuns(weaponnum) == 0) {
struct invitem *item;
@@ -366,6 +368,8 @@ bool invGiveSingleWeapon(s32 weaponnum)
bool invGiveDoubleWeapon(s32 weapon1, s32 weapon2)
{
g_ObjectivesDirty = true;
if (invHasDoubleWeaponExcAllGuns(weapon1, weapon2) == 0) {
if (weaponHasFlag(weapon1, WEAPONFLAG_DUALWIELD)) {
struct invitem *item = invFindUnusedSlot();