Browse Source

Also disallow Barbarian in shareware

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
pull/1334/head
Gleb Mazovetskiy 5 years ago committed by Anders Jenbo
parent
commit
6e846ee89d
  1. 2
      SourceX/DiabloUI/selhero.cpp

2
SourceX/DiabloUI/selhero.cpp

@ -358,7 +358,7 @@ static bool shouldPrefillHeroName()
void selhero_ClassSelector_Select(int value)
{
int hClass = vecSelHeroDlgItems[value]->m_value;
if (gbSpawned && (hClass == PC_ROGUE || hClass == PC_SORCERER || hClass == PC_BARD)) {
if (gbSpawned && hClass != PC_WARRIOR && hClass != PC_MONK) {
ArtBackground.Unload();
UiSelOkDialog(NULL, "The Rogue and Sorcerer are only available in the full retail version of Diablo. Visit https://www.gog.com/game/diablo to purchase.", false);
LoadBackgroundArt("ui_art\\selhero.pcx");

Loading…
Cancel
Save