mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
* show icons at visitable position * do not duplicate visible objects icons
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
#include "../mapObjects/CObjectHandler.h"
|
||||
|
||||
ObjectPosInfo::ObjectPosInfo():
|
||||
pos(),id(Obj::NO_OBJ), subId(-1), owner(PlayerColor::CANNOT_DETERMINE)
|
||||
pos(), id(Obj::NO_OBJ), subId(-1), owner(PlayerColor::CANNOT_DETERMINE)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ObjectPosInfo::ObjectPosInfo(const CGObjectInstance * obj):
|
||||
pos(obj->pos),id(obj->ID), subId(obj->subID), owner(obj->tempOwner)
|
||||
pos(obj->visitablePos()), id(obj->ID), subId(obj->subID), owner(obj->tempOwner)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user