mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
Fixes and new tuned terminal
This commit is contained in:
@@ -542,8 +542,15 @@ bool Tile::isLookPossible()
|
||||
|
||||
bool Tile::isClickable()
|
||||
{
|
||||
bool hasGround = false;
|
||||
bool hasOnBottom = false;
|
||||
bool hasIgnoreLook = false;
|
||||
for(const ThingPtr& thing : m_things) {
|
||||
if(!thing->isOnTop() && !thing->isIgnoreLook())
|
||||
if(thing->isGround())
|
||||
hasGround = true;
|
||||
if(thing->isOnBottom())
|
||||
hasOnBottom = true;
|
||||
if((hasGround || hasOnBottom) && !hasIgnoreLook)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user