Skip to content

Commit

Permalink
Merge pull request #2849 from AnnieRuru/78-fix_missing_scoreboard
Browse files Browse the repository at this point in the history
fix missing scoreboard for battleground type 2
  • Loading branch information
MishimaHaruna authored Nov 16, 2020
2 parents 3472eeb + 5fea0c7 commit 0457b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/npc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5028,7 +5028,7 @@ static const char *npc_parse_mapflag(const char *w1, const char *w2, const char
struct map_zone_data *zone;
if (state != 0) {
if (w4 != NULL && sscanf(w4, "%d", &state) == 1)
map->list[m].flag.battleground = (state != 0) ? 1 : 0;
map->list[m].flag.battleground = cap_value(state, 0, 2);
else
map->list[m].flag.battleground = 1; // Default value
} else {
Expand Down

0 comments on commit 0457b68

Please sign in to comment.