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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user