mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fixed #331 - Cartographer messages will now be based on their type and not the surface.
This commit is contained in:
@@ -4778,14 +4778,19 @@ void CCartographer::onHeroVisit( const CGHeroInstance * h ) const
|
|||||||
{
|
{
|
||||||
//ask if he wants to buy one
|
//ask if he wants to buy one
|
||||||
int text;
|
int text;
|
||||||
if (cb->getTile(pos)->tertype == 8) //water
|
switch (subID)
|
||||||
text = 25;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (pos.z == 0)
|
case 0:
|
||||||
|
text = 25;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
text = 26;
|
text = 26;
|
||||||
else
|
break;
|
||||||
|
case 2:
|
||||||
text = 27;
|
text = 27;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
tlog2 << "Unrecognized subtype of cartographer" << std::endl;
|
||||||
}
|
}
|
||||||
BlockingDialog bd (true, false);
|
BlockingDialog bd (true, false);
|
||||||
bd.player = h->getOwner();
|
bd.player = h->getOwner();
|
||||||
|
Reference in New Issue
Block a user