mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Minor fix to schema, server will print visited objects in debug log
This commit is contained in:
parent
a0689fa377
commit
6e3eaeee21
@ -87,6 +87,11 @@
|
||||
"description": "List of configuration files for heroes",
|
||||
"items": { "type":"string", "format" : "textFile" }
|
||||
},
|
||||
"objects": {
|
||||
"type":"array",
|
||||
"description": "List of configuration files for objects",
|
||||
"items": { "type":"string", "format" : "textFile" }
|
||||
},
|
||||
"spells": {
|
||||
"type":"array",
|
||||
"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 )
|
||||
{
|
||||
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());
|
||||
queries.addQuery(visitQuery); //TODO real visit pos
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user