mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
First part of Boat and sailing support.
[It's possible to enter the boat and move by sea, graphical glitches removal and disembarking will be done soon]
This commit is contained in:
@@ -140,7 +140,7 @@ void RemoveObject::applyCl( CClient *cl )
|
||||
|
||||
void TryMoveHero::applyFirstCl( CClient *cl )
|
||||
{
|
||||
if(result == TELEPORTATION)
|
||||
if(result == TELEPORTATION || result == EMBARK)
|
||||
CGI->mh->removeObject(GS(cl)->getHero(id));
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ void TryMoveHero::applyCl( CClient *cl )
|
||||
{
|
||||
const CGHeroInstance *h = cl->getHero(id);
|
||||
|
||||
if(result == TELEPORTATION)
|
||||
if(result == TELEPORTATION || result == EMBARK)
|
||||
CGI->mh->printObject(h);
|
||||
int player = h->tempOwner;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user