Skip to content

Commit

Permalink
Don't call decks of known type "BUGGY" in webtiles (#7996)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b06fc5)
  • Loading branch information
neilmoore committed Mar 19, 2015
1 parent 311141a commit 811c1d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crawl-ref/source/items.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4701,6 +4701,13 @@ item_info get_item_info(const item_def& item)
info_card_flags.push_back((char)flags);
}
}

if (info_cards.empty())
{
// An empty deck would display as BUGGY, so fake a card.
info_cards.push_back((char) 0);
info_card_flags.push_back((char) 0);
}
ii.props["cards"] = info_cards;
ii.props["card_flags"] = info_card_flags;
}
Expand Down

0 comments on commit 811c1d7

Please sign in to comment.