mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
bugfix, a bit more of hero window
This commit is contained in:
@ -1880,6 +1880,10 @@ std::string CMapHandler::getRandomizedDefName(CGDefInfo *di, CGObjectInstance *
|
||||
}
|
||||
}
|
||||
}
|
||||
if(fraction == -1)
|
||||
{
|
||||
fraction = rand()%F_NUMBER; //TODO: check it more
|
||||
}
|
||||
int lvl = atoi(di->name.substr(7, 8).c_str()) - 1;
|
||||
return creGenNames[fraction][lvl];
|
||||
}
|
||||
|
Reference in New Issue
Block a user