mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Castle gate: only allow teleport to own Inferno towns
This is how that works in H3. And on server side it's checked already anyway. Though it's must be possible to teleport from ally Inferno to your own if both have Castle Gate.
This commit is contained in:
parent
0d83f6fedd
commit
c3c31e90ff
@ -768,7 +768,7 @@ void CCastleBuildings::enterCastleGate()
|
||||
return;//only visiting hero can use castle gates
|
||||
}
|
||||
std::vector <int> availableTowns;
|
||||
std::vector <const CGTownInstance*> Towns = LOCPLINT->cb->getTownsInfo(false);
|
||||
std::vector <const CGTownInstance*> Towns = LOCPLINT->cb->getTownsInfo(true);
|
||||
for(auto & Town : Towns)
|
||||
{
|
||||
const CGTownInstance *t = Town;
|
||||
|
Loading…
Reference in New Issue
Block a user