mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Minor fix to schema, server will print visited objects in debug log
This commit is contained in:
@ -87,6 +87,11 @@
|
|||||||
"description": "List of configuration files for heroes",
|
"description": "List of configuration files for heroes",
|
||||||
"items": { "type":"string", "format" : "textFile" }
|
"items": { "type":"string", "format" : "textFile" }
|
||||||
},
|
},
|
||||||
|
"objects": {
|
||||||
|
"type":"array",
|
||||||
|
"description": "List of configuration files for objects",
|
||||||
|
"items": { "type":"string", "format" : "textFile" }
|
||||||
|
},
|
||||||
"spells": {
|
"spells": {
|
||||||
"type":"array",
|
"type":"array",
|
||||||
"description": "List of configuration files for spells",
|
"description": "List of configuration files for spells",
|
||||||
|
@ -4986,7 +4986,7 @@ bool CGameHandler::isAllowedExchange( ObjectInstanceID id1, ObjectInstanceID id2
|
|||||||
|
|
||||||
void CGameHandler::objectVisited( const CGObjectInstance * obj, const CGHeroInstance * h )
|
void CGameHandler::objectVisited( const CGObjectInstance * obj, const CGHeroInstance * h )
|
||||||
{
|
{
|
||||||
logGlobal->traceStream() << h->nodeName() << " visits " << obj->getObjectName();
|
logGlobal->debugStream() << h->nodeName() << " visits " << obj->getObjectName() << "(" << obj->ID << ":" << obj->subID << ")";
|
||||||
auto visitQuery = make_shared<CObjectVisitQuery>(obj, h, obj->visitablePos());
|
auto visitQuery = make_shared<CObjectVisitQuery>(obj, h, obj->visitablePos());
|
||||||
queries.addQuery(visitQuery); //TODO real visit pos
|
queries.addQuery(visitQuery); //TODO real visit pos
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user