1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

1.Support for cage of Warlord, Temple of Valhalla, Wall of Knowledge, Order of Fire

2.Level-up from newly implemented School of War crashed the game.
3.A sketch of shops support
This commit is contained in:
DjWarmonger
2009-09-21 09:00:33 +00:00
parent bff3abe122
commit b29ac50dcb
6 changed files with 180 additions and 14 deletions

View File

@ -4350,3 +4350,27 @@ void CPuzzleWindow::show(SDL_Surface * to)
if(screen->w != 800 || screen->h !=600)
CMessage::drawBorder(LOCPLINT->playerID,to,828,628,pos.x-14,pos.y-15);
}
bool CShopWindow::swapItem (ui16 which, bool choose)
{
bool itemFound = false;
if (choose == true) //choose item
{
if (chosen.count(which))
{
itemFound = true;
chosen[which] = avaliable[which];
avaliable.erase(which);
}
}
else //return item to avaliable list
{
if (avaliable.count(which))
{
itemFound = true;
avaliable[which] = chosen[which];
chosen.erase(which);
}
}
return itemFound;
}