Skip to content

Commit

Permalink
fix bossactions = clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Dec 13, 2024
1 parent a320f7a commit d77de20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,9 @@ void A_BossDeath(mobj_t *mo)
line_t junk;
int i;

if (gamemapinfo && gamemapinfo->nobossactions)
return;

if (gamemapinfo && array_size(gamemapinfo->bossactions))
{
// make sure there is a player alive for victory
Expand Down
2 changes: 1 addition & 1 deletion src/u_mapinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ static void ParseStandardProperty(scanner_t *s, mapentry_t *mape)
SC_MustGetToken(s, TK_Identifier);
if (!strcasecmp(SC_GetString(s), "clear"))
{
// mark level free of boss actions
array_free(mape->bossactions);
mape->nobossactions = true; // mark level free of boss actions
}
else
{
Expand Down
1 change: 1 addition & 0 deletions src/u_mapinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ typedef struct mapentry_s
int partime;
boolean nointermission;
bossaction_t *bossactions;
boolean nobossactions;
} mapentry_t;

extern mapentry_t *umapinfo, *umapdef;
Expand Down

0 comments on commit d77de20

Please sign in to comment.