mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	| @@ -74,7 +74,7 @@ | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RD|Win32'" Label="Configuration"> | ||||
|     <ConfigurationType>DynamicLibrary</ConfigurationType> | ||||
|     <ConfigurationType>StaticLibrary</ConfigurationType> | ||||
|     <UseDebugLibraries>false</UseDebugLibraries> | ||||
|     <WholeProgramOptimization>true</WholeProgramOptimization> | ||||
|     <CharacterSet>MultiByte</CharacterSet> | ||||
|   | ||||
| @@ -1572,16 +1572,16 @@ int CGameState::battleGetBattlefieldType(int3 tile) const | ||||
| 	if(dynamic_cast<const CGMine *>(t.visitableObjects.front())) | ||||
| 		return 12; | ||||
|  | ||||
| 	const std::vector <ConstTransitivePtr<CGObjectInstance> > & objs = map->objects; | ||||
| 	for(int g=0; g<objs.size(); ++g) | ||||
| 	BOOST_FOREACH(auto &obj, map->objects) | ||||
| 	{ | ||||
| 		if( !objs[g] || objs[g]->pos.x - tile.x < 0  ||  objs[g]->pos.x - tile.x >= 8 | ||||
| 			||  tile.y - objs[g]->pos.y + 5 < 0  ||  tile.y - objs[g]->pos.y + 5 >=6 | ||||
| 			|| !objs[g]->coveringAt(objs[g]->pos.x - tile.x, tile.y - objs[g]->pos.y + 5) | ||||
| 		if( !obj || obj->pos.z != tile.z  | ||||
| 			|| obj->pos.x - tile.x < 0  ||  obj->pos.x - tile.x >= 8 | ||||
| 			||  tile.y - obj->pos.y + 5 < 0  ||  tile.y - obj->pos.y + 5 >=6 | ||||
| 			|| !obj->coveringAt(obj->pos.x - tile.x, tile.y - obj->pos.y + 5) | ||||
| 			) //look only for objects covering given tile | ||||
| 			continue; | ||||
|  | ||||
| 		switch(objs[g]->ID) | ||||
| 		switch(obj->ID) | ||||
| 		{ | ||||
| 		case Obj::CLOVER_FIELD: | ||||
| 			return 19; | ||||
|   | ||||
| @@ -63,11 +63,11 @@ | ||||
|   <PropertyGroup Label="UserMacros" /> | ||||
|   <PropertyGroup> | ||||
|     <_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\</OutDir> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..</OutDir> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)</OutDir> | ||||
|     <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> | ||||
|     <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">..\..\RD</OutDir> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">$(SolutionDir)$(Configuration)\bin\</OutDir> | ||||
|     <OutDir Condition="'$(Configuration)|$(Platform)'=='RD|x64'">$(SolutionDir)$(Configuration)\bin\</OutDir> | ||||
|     <IntDir Condition="'$(Configuration)|$(Platform)'=='RD|Win32'">$(Configuration)\</IntDir> | ||||
|     <IntDir Condition="'$(Configuration)|$(Platform)'=='RD|x64'">$(Configuration)\</IntDir> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user