1
0
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:
Michał W. Urbańczyk
2008-08-29 21:41:32 +00:00
parent 7722d058f0
commit bca18a31c3
18 changed files with 164 additions and 68 deletions

View File

@ -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);