mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
- Move Hero / Prison distribution to separate modificator
- Protect rolling and banning hero with mutex
This commit is contained in:
@ -649,6 +649,8 @@ void CMap::banWaterHeroes()
|
||||
|
||||
void CMap::banHero(const HeroTypeID & id)
|
||||
{
|
||||
if (!vstd::contains(allowedHeroes, id))
|
||||
logGlobal->warn("Attempt to ban hero %d, who is already not allowed", id.encode(id));
|
||||
allowedHeroes.erase(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user