浏览代码

Minor fix to schema, server will print visited objects in debug log

Ivan Savenko 11 年之前
父节点
当前提交
6e3eaeee21
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      config/schemas/mod.json
  2. 1 1
      server/CGameHandler.cpp

+ 5 - 0
config/schemas/mod.json

@@ -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",

+ 1 - 1
server/CGameHandler.cpp

@@ -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