Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						9fd1cff090 
					 
					
						
						
							
							Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared  
						
						... 
						
						
						
						Long time ago it's was used without prefix to make future switch from boost to std version easier.
I discusses this with Ivan and decide to drop these using from Global.h now.
This change wouldn't break anything because there was already code with prefix for each of three cases. 
						
						
					 
					
						2015-12-29 05:43:33 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						6985e96f0d 
					 
					
						
						
							
							CGameHandler::newTurn: use next day TurnInfo to set correct hero MP  
						
						... 
						
						
						
						This hotfix actually fix issue 2083, but in future we need to rework new turn code anyway. See issue 2356. 
						
						
					 
					
						2015-12-25 11:09:06 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						6f5c52a229 
					 
					
						
						
							
							Refactoring: use cleaner CCreatureSet::stacksCount everywhere  
						
						
						
						
					 
					
						2015-12-24 21:30:57 +03:00 
						 
				 
			
				
					
						
							
							
								Ivan Savenko 
							
						 
					 
					
						
						
							
						
						a051a08a46 
					 
					
						
						
							
							Merge remote-tracking branch 'origin/issue/2306' into develop  
						
						
						
						
					 
					
						2015-12-18 22:21:11 +02:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						bf9ac7318a 
					 
					
						
						
							
							CPathfinder: change cost calculation sequence for embark / disembark  
						
						... 
						
						
						
						With old embark cost calculation pathfinder may end up thinking that hero can embark/disembark while have less movement points than base movement cost is. Now hero would be only able to embark / disembark if we have enough movement points to step on that tile. This rule is also valid for situation when hero have Admiral's Hat as in H3 even if hero don't have embark penalty he still use move points for embark and disembark.
Problem was found as it's was causing infitite loop in AI. Server of course rejected attempt to embark with less than 100 movement points while pathfinder tell AI that it's can still embark with 93 movement points. 
						
						
					 
					
						2015-12-15 20:08:52 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						5aadc1ed6f 
					 
					
						
						
							
							CasualtiesAfterBattle: dont remove catapult artifact. Fix 2346 issue  
						
						
						
						
					 
					
						2015-12-10 13:31:03 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						d900e9bec2 
					 
					
						
						
							
							CGameHandler: fix hero removal code on player loss. Fix issue 2347  
						
						
						
						
					 
					
						2015-12-10 12:43:55 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						03e9dd3bab 
					 
					
						
						
							
							Add hero gold cost to GameConstants  
						
						
						
						
					 
					
						2015-12-07 00:13:58 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						0fab319c73 
					 
					
						
						
							
							Merge remote-tracking branch 'remotes/origin/develop' into issue/2306  
						
						... 
						
						
						
						s reverts commit fa8a282696 
						
						
					 
					
						2015-12-05 12:56:12 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						0a5e9c0fbe 
					 
					
						
						
							
							Merge pull request  #144  from vcmi/fix/teleportMultiExitPoints  
						
						... 
						
						
						
						Support for exit selection between multiple teleport exit points 
						
						
					 
					
						2015-12-05 03:12:17 +03:00 
						 
				 
			
				
					
						
							
							
								Ivan Savenko 
							
						 
					 
					
						
						
							
						
						faa7cbff18 
					 
					
						
						
							
							Fixed gcc/clang warnings  
						
						
						
						
					 
					
						2015-12-04 01:17:43 +02:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						2f9ca778b2 
					 
					
						
						
							
							VCAI: add channel probing support for teleporters with multiple exits  
						
						
						
						
					 
					
						2015-12-03 17:20:03 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						f55bfe41d6 
					 
					
						
						
							
							Digging: implement digging status on right click. Fix issue 401  
						
						... 
						
						
						
						This is also fix possibility to dig on some non-blockable objects like event. 
						
						
					 
					
						2015-11-29 12:34:23 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						a1fe2ebc44 
					 
					
						
						
							
							Pathfinding: restore gamestate usage to avoid overhead  
						
						... 
						
						
						
						Also when possible pass TerrainTile pointers to getMovementCost instead of using getTile. 
						
						
					 
					
						2015-11-21 14:31:30 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						abc4ea272f 
					 
					
						
						
							
							TurnInfo: store all bonuses and use TileInfo for everything  
						
						... 
						
						
						
						Currently this going to break ONE_WEEK bonuses because those don't work with CWillLastDays selector. 
						
						
					 
					
						2015-11-12 14:30:29 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						2ef9d7c3ec 
					 
					
						
						
							
							Rename getCost back to getMovementCost  
						
						... 
						
						
						
						Initially wanter to name main class differently and back then getCost make sense.
Then renamed class to CPathfinderHelper, but forgot to rename function back. 
						
						
					 
					
						2015-11-10 02:30:05 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						b2e1ee5363 
					 
					
						
						
							
							CGameState: move two pathfinding-related functions to CPathfinderHelper  
						
						... 
						
						
						
						Both getMovementCost and getNeighbours have nothing to do with gamestate. 
						
						
					 
					
						2015-11-10 02:15:27 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						d3c8ca7c1c 
					 
					
						
						
							
							Pathfinding: implement duration checking for fly and water walking  
						
						... 
						
						
						
						Now pathfinder take into account different bonuses for different tuns. So if you only have FLYING_MOVEMENT bonus from Fly spell for one turn then pathfinder will only let you use air layer within one turn only.
That work for cost calculations too. Let's say you have two bonuses:
 - FLYING_MOVEMENT with 20% penalty for next 2 turns
 - FLYING_MOVEMENT with 40% penalty for 5 turns
Now pathfinder using correct penalty for each turn so movements in air layer going to be more expensive on 3-5 turns. 
						
						
					 
					
						2015-11-09 19:57:26 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						5106738160 
					 
					
						
						
							
							Merge branch 'develop' into feature/pathfinderLayers  
						
						
						
						
					 
					
						2015-11-09 19:20:13 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						74198a537b 
					 
					
						
						
							
							CGameHandler::setOwner: fix InfoWindow text on last town loss  
						
						
						
						
					 
					
						2015-11-09 00:54:59 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						e645b46aed 
					 
					
						
						
							
							Revert "Merge pull request  #124  from vcmi/issue/1372"  
						
						... 
						
						
						
						This reverts commit da01af319b8b6b4e2e0b 
						
						
					 
					
						2015-11-07 11:35:02 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						bd12989ad6 
					 
					
						
						
							
							Artifacts: use ArtifactID instead of ints  
						
						
						
						
					 
					
						2015-11-06 21:54:51 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						62dc070c0a 
					 
					
						
						
							
							moveHero: add transit validation and avoid embarking on transit  
						
						... 
						
						
						
						Hero shouldn't embark into boat when attempt to transit over air layer. 
						
						
					 
					
						2015-11-05 10:50:47 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						ac12a0735e 
					 
					
						
						
							
							Plumbing on client and server to make flying actually work  
						
						
						
						
					 
					
						2015-11-05 10:02:13 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						6a9dc78dcd 
					 
					
						
						
							
							[WiP]Added some checks for RISE_DEMONS action.  
						
						
						
						
					 
					
						2015-11-03 02:18:36 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						fbebbf39f3 
					 
					
						
						
							
							Fix zero size stack summoned in case of basic resurrection.  
						
						
						
						
					 
					
						2015-11-03 02:18:35 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						f6b9015324 
					 
					
						
						
							
							Use constant for summoned creature slot  
						
						
						
						
					 
					
						2015-11-03 02:18:34 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						c94bea51e3 
					 
					
						
						
							
							Update army in case of summoned creatures  
						
						
						
						
					 
					
						2015-11-03 02:18:33 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						b024237e8a 
					 
					
						
						
							
							Remove stack instancies of removed stacks  
						
						
						
						
					 
					
						2015-11-03 02:18:32 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						d46364c4c3 
					 
					
						
						
							
							Merge branch 'develop' into issue/2306  
						
						... 
						
						
						
						Need to reapply changes to pathfiner
Conflicts:
	AI/VCAI/VCAI.cpp
	lib/CGameState.cpp
	lib/CGameStateFwd.h 
						
						
					 
					
						2015-11-01 01:49:57 +03:00 
						 
				 
			
				
					
						
							
							
								Vadim Markovtsev 
							
						 
					 
					
						
						
							
						
						fa8a282696 
					 
					
						
						
							
							Fix pthread_mutex_lock abort() in requestActionASAP impl  
						
						
						
						
					 
					
						2015-10-31 18:04:06 +03:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						17071c6ec8 
					 
					
						
						
							
							Merge pull request  #125  from ArseniyShestakov/newMovementSystem  
						
						... 
						
						
						
						Okay, time to merge this. 
						
						
					 
					
						2015-10-31 13:56:22 +01:00 
						 
				 
			
				
					
						
							
							
								Vadim Markovtsev 
							
						 
					 
					
						
						
							
						
						68cc860133 
					 
					
						
						
							
							Fix dynamic_cast on MacOSX in CQuery.cpp  
						
						
						
						
					 
					
						2015-10-31 15:05:52 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						a0a55974ea 
					 
					
						
						
							
							Fix issue 2320. Town events for buildings should now work  
						
						
						
						
					 
					
						2015-10-28 08:46:43 +03:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						c47c08aa01 
					 
					
						
						
							
							Replaced iterators with auto & loop.  
						
						
						
						
					 
					
						2015-10-25 07:07:01 +01:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						eb0af0096e 
					 
					
						
						
							
							Fixed   #2072 .  
						
						
						
						
					 
					
						2015-10-24 18:16:57 +02:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						61692ba168 
					 
					
						
						
							
							Possibly  fixed   #1583  and other issues concerning players capturing towns.  
						
						
						
						
					 
					
						2015-10-24 18:03:00 +02:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						3c4f7ec126 
					 
					
						
						
							
							Fixed   #2311  
						
						
						
						
					 
					
						2015-10-24 17:15:21 +02:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						641aa13526 
					 
					
						
						
							
							Some fixes for previous commit.  
						
						
						
						
					 
					
						2015-10-24 17:02:00 +02:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						716c324695 
					 
					
						
						
							
							Don't give a turn to player who is about to lose (days without town).  
						
						
						
						
					 
					
						2015-10-24 16:21:30 +02:00 
						 
				 
			
				
					
						
							
							
								DjWarmonger 
							
						 
					 
					
						
						
							
						
						abe88ea890 
					 
					
						
						
							
							- Refactoring legacy code  
						
						... 
						
						
						
						- Some checks for #2311  
						
						
					 
					
						2015-10-24 15:09:46 +02:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						fc6f62e633 
					 
					
						
						
							
							getMovementCost: get rid of useless flying parameter  
						
						
						
						
					 
					
						2015-10-19 07:27:00 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						b94432b4ba 
					 
					
						
						
							
							Fixed  http://bugs.vcmi.eu/view.php?id=2297  
						
						... 
						
						
						
						* allow banned spells by Tomes (XXX_SPELLS bonus), Spelbinders Hat (SPELLS_OF_LEVEL bonus)
* allow banned spells by cheat-code (now also SPELLS_OF_LEVEL bonus) 
						
						
					 
					
						2015-10-13 13:16:46 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						f99bf099ca 
					 
					
						
						
							
							Made player interface tolerant to active stack removal.  
						
						
						
						
					 
					
						2015-10-06 03:46:35 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						d042b08682 
					 
					
						
						
							
							Fix the SACRIFICE fix regression  
						
						... 
						
						
						
						(crach if stack die on counter attack) 
						
						
					 
					
						2015-10-06 02:04:25 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						d1ec538d72 
					 
					
						
						
							
							Fix server crash releated to active stack remove.  
						
						
						
						
					 
					
						2015-10-05 21:09:00 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						57e5b768e8 
					 
					
						
						
							
							Allow multiple destinations in BattleSpellCastParameters  
						
						
						
						
					 
					
						2015-09-30 00:31:50 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						70d9be8447 
					 
					
						
						
							
							Use ISpellCaster in battle callback  
						
						
						
						
					 
					
						2015-09-29 17:26:52 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						36e154d9b9 
					 
					
						
						
							
							Use ISpellCaster in getAffectedStacks  
						
						
						
						
					 
					
						2015-09-29 17:26:50 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						a4d4851d80 
					 
					
						
						
							
							Fix typo: casted->cast  
						
						
						
						
					 
					
						2015-09-29 17:26:48 +03:00