mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
* fixed crashes when town is placed out of the map boundaries
* for screen is updated after buying creatures * fixed crashbug on maps with random monster * proper images of war machines are displayed in blacksmith * picking starting hero should work again * Ice Elemental will be treated as two-hex creature * minor fixes
This commit is contained in:
@ -2184,6 +2184,17 @@ void CPlayerInterface::updateWater()
|
||||
//water tiles updated
|
||||
//CGI->screenh->updateScreen();
|
||||
}
|
||||
|
||||
void CPlayerInterface::availableCreaturesChanged( const CGTownInstance *town )
|
||||
{
|
||||
boost::unique_lock<boost::mutex> un(*pim);
|
||||
if(curint == castleInt)
|
||||
{
|
||||
CFortScreen *fs = dynamic_cast<CFortScreen*>(curint->subInt);
|
||||
if(fs)
|
||||
fs->draw(castleInt,false);
|
||||
}
|
||||
}
|
||||
CStatusBar::CStatusBar(int x, int y, std::string name, int maxw)
|
||||
{
|
||||
bg=BitmapHandler::loadBitmap(name);
|
||||
|
Reference in New Issue
Block a user