1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* CPU usage decreased

* it's impossible to select empty artifact slot in hero window
This commit is contained in:
mateuszb
2008-02-12 17:40:01 +00:00
parent 4a655a0ad1
commit d5a4dcc6cd
4 changed files with 25 additions and 14 deletions

View File

@@ -890,8 +890,11 @@ void CArtPlace::clickLeft(boost::logic::tribool down)
{
if(!ourWindow->activeArtPlace) //nothing has benn clicked
{
clicked = true;
ourWindow->activeArtPlace = this;
if(ourArt) //to prevent selecting empty slots (bugfix to what GrayFace reported)
{
clicked = true;
ourWindow->activeArtPlace = this;
}
}
else //perform artifact substitution
{