mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Unrelated typo fix
This commit is contained in:
@@ -1667,7 +1667,7 @@ void CPlayerInterface::advmapSpellCast(const CGHeroInstance * caster, int spellI
|
|||||||
CCS->soundh->playSound(castSoundPath);
|
CCS->soundh->playSound(castSoundPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayerInterface::tryDiggging(const CGHeroInstance * h)
|
void CPlayerInterface::tryDigging(const CGHeroInstance * h)
|
||||||
{
|
{
|
||||||
int msgToShow = -1;
|
int msgToShow = -1;
|
||||||
|
|
||||||
|
@@ -202,7 +202,7 @@ public: // public interface for use by client via LOCPLINT access
|
|||||||
void stopMovement();
|
void stopMovement();
|
||||||
void moveHero(const CGHeroInstance *h, const CGPath& path);
|
void moveHero(const CGHeroInstance *h, const CGPath& path);
|
||||||
|
|
||||||
void tryDiggging(const CGHeroInstance *h);
|
void tryDigging(const CGHeroInstance *h);
|
||||||
void showShipyardDialogOrProblemPopup(const IShipyard *obj); //obj may be town or shipyard;
|
void showShipyardDialogOrProblemPopup(const IShipyard *obj); //obj may be town or shipyard;
|
||||||
void proposeLoadingGame();
|
void proposeLoadingGame();
|
||||||
|
|
||||||
|
@@ -284,7 +284,7 @@ void AdventureMapShortcuts::digGrail()
|
|||||||
const CGHeroInstance *h = LOCPLINT->localState->getCurrentHero();
|
const CGHeroInstance *h = LOCPLINT->localState->getCurrentHero();
|
||||||
|
|
||||||
if(h && LOCPLINT->makingTurn)
|
if(h && LOCPLINT->makingTurn)
|
||||||
LOCPLINT->tryDiggging(h);
|
LOCPLINT->tryDigging(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdventureMapShortcuts::viewPuzzleMap()
|
void AdventureMapShortcuts::viewPuzzleMap()
|
||||||
|
@@ -42,7 +42,7 @@ AdventureOptions::AdventureOptions()
|
|||||||
|
|
||||||
dig = std::make_shared<CButton>(Point(24, 139), "ADVDIG.DEF", CButton::tooltip(), [&](){ close(); }, EShortcut::ADVENTURE_DIG_GRAIL);
|
dig = std::make_shared<CButton>(Point(24, 139), "ADVDIG.DEF", CButton::tooltip(), [&](){ close(); }, EShortcut::ADVENTURE_DIG_GRAIL);
|
||||||
if(const CGHeroInstance *h = LOCPLINT->localState->getCurrentHero())
|
if(const CGHeroInstance *h = LOCPLINT->localState->getCurrentHero())
|
||||||
dig->addCallback(std::bind(&CPlayerInterface::tryDiggging, LOCPLINT, h));
|
dig->addCallback(std::bind(&CPlayerInterface::tryDigging, LOCPLINT, h));
|
||||||
else
|
else
|
||||||
dig->block(true);
|
dig->block(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user