Skip to content

Commit

Permalink
fix missing scoreboard for battleground type 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnieRuru committed Sep 25, 2020
1 parent 1354b01 commit a523a7e
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, 1, 2);
else
map->list[m].flag.battleground = 1; // Default value
} else {
Expand Down

0 comments on commit a523a7e

Please sign in to comment.