mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	#1071 - In latest night builds there are problems with schema obstacle.json and file obstacles.json
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -15,7 +15,7 @@ | ||||
| 		"specialBattlefields": { | ||||
| 			"type": "array", | ||||
| 			"description": "Obstacles can be placed on specified specified battlefields", | ||||
| 			"items": { "$ref" : "battlefield.json" } | ||||
| 			"items": { "type" : "string" } | ||||
| 		}, | ||||
| 		"width": { | ||||
| 			"type": "number", | ||||
|   | ||||
| @@ -85,7 +85,7 @@ ObstacleInfo * ObstacleHandler::loadFromJson(const std::string & scope, const Js | ||||
| 	info->animation = json["animation"].String(); | ||||
| 	info->width = json["width"].Integer(); | ||||
| 	info->height = json["height"].Integer(); | ||||
| 	for(auto & t : json["allowedTerrain"].Vector()) | ||||
| 	for(auto & t : json["allowedTerrains"].Vector()) | ||||
| 		info->allowedTerrains.emplace_back(VLC->terrainTypeHandler->getInfoByName(t.String())->id); | ||||
| 	for(auto & t : json["specialBattlefields"].Vector()) | ||||
| 		info->allowedSpecialBfields.emplace_back(t.String()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user