Skip to content

Commit 6eeb0f1

Browse files
committed
swars: Revert the split of check_delete_open_mission()
I'm still not exactly sure what's wrong with the split, but it did caused regression in the last mission. This reverts part of the patch: swars: Fixed check_mission_conds(), plus few small updates
1 parent 07bcfba commit 6eeb0f1

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/game.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6138,11 +6138,12 @@ ushort mission_fire_fail_triggers(ushort missi)
61386138
return n;
61396139
}
61406140

6141-
void check_open_next_mission(ushort mslot, sbyte state)
6141+
void check_delete_open_mission(ushort mslot, sbyte state)
61426142
{
61436143
ushort missi;
61446144
TbBool conds_met;
61456145

6146+
// TODO close the part below into check_open_next_mission()
61466147
missi = mission_open[mslot];
61476148
if (state == 1) {
61486149
mission_list[missi].Complete = state;
@@ -6302,14 +6303,10 @@ void check_open_next_mission(ushort mslot, sbyte state)
63026303
}
63036304
}
63046305
}
6305-
}
6306-
6307-
void check_delete_open_mission(ushort mslot, sbyte state)
6308-
{
6309-
ushort missi;
6306+
// TODO check_open_next_mission end
63106307

63116308
//TODO place this call one level higher
6312-
check_open_next_mission(mslot, state);
6309+
//check_open_next_mission(mslot, state);
63136310

63146311
missi = mission_open[mslot];
63156312

0 commit comments

Comments
 (0)