Vadim Markovtsev 
							
						 
					 
					
						
						
							
						
						99a3a58cbb 
					 
					
						
						
							
							Add commander resurrection info window upon entering town  
						
						
						
						
					 
					
						2016-10-29 21:55:00 +02:00 
						 
				 
			
				
					
						
							
							
								Vadim Markovtsev 
							
						 
					 
					
						
						
							
						
						9f967b4d7a 
					 
					
						
						
							
							Fix formatting  
						
						
						
						
					 
					
						2016-10-29 17:00:12 +02:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						f760e22707 
					 
					
						
						
							
							Fixed two recursive infinite loops in case of alternate buildings.  
						
						... 
						
						
						
						* introduced in https://github.com/vcmi/vcmi/pull/211  
						
						
					 
					
						2016-10-15 04:19:47 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						cf143cd257 
					 
					
						
						
							
							Hack-fix crash in CGTownInstance::genBuildingRequirements related to alternate town buildings  
						
						... 
						
						
						
						* this disables features of #211 , but actual problem may be deeper inside logical expressions 
						
						
					 
					
						2016-10-14 23:46:24 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						552f28c10b 
					 
					
						
						
							
							fix  
						
						
						
						
					 
					
						2016-10-11 21:25:22 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						ef9bff9006 
					 
					
						
						
							
							fixes related to  http://bugs.vcmi.eu/view.php?id=2520  
						
						
						
						
					 
					
						2016-10-11 20:04:30 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						9834db1b7d 
					 
					
						
						
							
							simplified CGScholar::onHeroVisit  
						
						
						
						
					 
					
						2016-10-11 20:04:28 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						4173a5064c 
					 
					
						
						
							
							Fixed  http://bugs.vcmi.eu/view.php?id=2545  
						
						
						
						
					 
					
						2016-10-11 20:04:27 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						24585cde87 
					 
					
						
						
							
							complete fix for  http://bugs.vcmi.eu/view.php?id=2507  
						
						
						
						
					 
					
						2016-10-11 18:19:42 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						5c3f84138b 
					 
					
						
						
							
							fixed random reward generation in CGVisitableOPW  
						
						
						
						
					 
					
						2016-10-11 18:00:54 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						7db7ece143 
					 
					
						
						
							
							Do not send netpack inside netpack handler.  
						
						
						
						
					 
					
						2016-10-09 19:38:13 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						bb890098df 
					 
					
						
						
							
							Fix regression for week-visitable objects  
						
						
						
						
					 
					
						2016-10-09 18:51:41 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						799b8519e0 
					 
					
						
						
							
							Allow cast avdmap spells without spellbook  
						
						... 
						
						
						
						* fixes http://bugs.vcmi.eu/view.php?id=1898 
* partial fix for http://bugs.vcmi.eu/view.php?id=482 
* fixes http://bugs.vcmi.eu/view.php?id=2155  
						
						
					 
					
						2016-10-01 17:21:39 +03:00 
						 
				 
			
				
					
						
							
							
								Vadim Markovtsev 
							
						 
					 
					
						
						
							
						
						2c1dddde33 
					 
					
						
						
							
							Fix memory problems with BonusList  
						
						... 
						
						
						
						Bonus * -> std::shared_ptr<Bonus>
This cures the following problems:
1) Memory corruption at exit. Some Bonus-es were deleted twice (mods?).
2) Memory leaks. Some Bonuses were not deleted.
3) Reduce the number of "Orphaned child" messages.
Valgrind reports 0 leaked memory now and no invalid reads/writes. 
						
						
					 
					
						2016-09-29 15:08:00 +02:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						6c63041d1a 
					 
					
						
						
							
							Merge pull request  #198  from vcmi/SpellsRefactoring8  
						
						... 
						
						
						
						No reason to not merge this now. 
						
						
					 
					
						2016-09-24 05:29:55 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						bb05db90e5 
					 
					
						
						
							
							CRewardableObject::onHeroVisit: avoid crash on pickable objects  
						
						... 
						
						
						
						Missed this problem when tested #214  
						
						
					 
					
						2016-09-23 11:47:07 +03:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						50b271393c 
					 
					
						
						
							
							Merge pull request  #214  from Chocimier/iss1975  
						
						... 
						
						
						
						Properly check if corpse was visited 
						
						
					 
					
						2016-09-23 06:26:10 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						ea2e336f54 
					 
					
						
						
							
							Merge branch 'develop' into SpellsRefactoring8  
						
						
						
						
					 
					
						2016-09-22 16:40:32 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						97d358b70f 
					 
					
						
						
							
							Marking visited for team  
						
						... 
						
						
						
						Also no longer gives reward every player 
						
						
					 
					
						2016-09-20 22:05:44 +02:00 
						 
				 
			
				
					
						
							
							
								Dydzio 
							
						 
					 
					
						
						
							
						
						bd651ec5ef 
					 
					
						
						
							
							Improve pandora box secondary skill handling  
						
						
						
						
					 
					
						2016-09-20 12:40:58 +02:00 
						 
				 
			
				
					
						
							
							
								Dydzio 
							
						 
					 
					
						
						
							
						
						563a5d53c0 
					 
					
						
						
							
							Update secondary skill handling. Fix issue 2307  
						
						... 
						
						
						
						Also making secondary skill icon display behavior same as in H3 during popup message. 
						
						
					 
					
						2016-09-19 20:05:57 +02:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						635c48f889 
					 
					
						
						
							
							CGHeroInstance::setType: fix to give proper subID to random heroes  
						
						... 
						
						
						
						Hero class id is used to determine hero object appearance, but after than we use subID to store it's unique id.
This change should fix issues 2127 and 2277 since random heroes not going to override others in heroesPool. 
						
						
					 
					
						2016-09-18 10:01:09 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						f6df107a55 
					 
					
						
						
							
							Replace more magic subIDs with readable enums  
						
						
						
						
					 
					
						2016-09-18 00:53:37 +03:00 
						 
				 
			
				
					
						
							
							
								Dydzio 
							
						 
					 
					
						
						
							
						
						beae354536 
					 
					
						
						
							
							Correcting random amount of gold in gold piles  
						
						... 
						
						
						
						In original H3 allowed amounts of gold in treasure piles are multipliers of 100. Before this fix gold amount can be any value from range 500-1000. 
						
						
					 
					
						2016-09-17 23:22:13 +02:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						53fbf88316 
					 
					
						
						
							
							Spell cast logging refactored.  
						
						
						
						
					 
					
						2016-09-17 23:04:23 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						d993710f8e 
					 
					
						
						
							
							Merge branch 'develop' into SpellsRefactoring8  
						
						
						
						
					 
					
						2016-09-17 20:29:44 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						28d859419c 
					 
					
						
						
							
							Revert the old code  
						
						
						
						
					 
					
						2016-09-16 22:01:21 +02:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						29d6fb0f04 
					 
					
						
						
							
							Properly check if corpse was visited  
						
						... 
						
						
						
						Fixes two issues:
- corpse without loot couldn't be marked as visited
- taking loot from once visitable objects marked them as visited for all players 
						
						
					 
					
						2016-09-16 20:59:07 +02:00 
						 
				 
			
				
					
						
							
							
								ArseniyShestakov 
							
						 
					 
					
						
						
							
						
						b5fa97b697 
					 
					
						
						
							
							Merge pull request  #211  from Chocimier/iss2321  
						
						... 
						
						
						
						Tested. Everthing looks fine so merging. 
						
						
					 
					
						2016-09-14 00:37:17 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						c5e4eaf9c1 
					 
					
						
						
							
							Check if hero knows spell even without wisdom  
						
						
						
						
					 
					
						2016-09-13 22:28:21 +02:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						1e60ba6516 
					 
					
						
						
							
							Only delete CQuest in CMap destructor and not with IQuestObject  
						
						... 
						
						
						
						Quest information must remain accessible even if map object removed. Fix issue 2472 
						
						
					 
					
						2016-09-13 01:30:47 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						505e53c17d 
					 
					
						
						
							
							Merge remote-tracking branch 'remotes/origin/develop' into SpellsRefactoring8  
						
						... 
						
						
						
						# Conflicts:
#	client/battle/CBattleInterface.cpp
#	lib/spells/BattleSpellMechanics.cpp 
						
						
					 
					
						2016-09-12 10:13:40 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						33d1895d21 
					 
					
						
						
							
							Merge branch 'develop' into SpellsRefactoring8  
						
						
						
						
					 
					
						2016-09-11 18:34:18 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						c8faca8f39 
					 
					
						
						
							
							Refactoring: only use RNGs explicitly to avoid bug prone code in future  
						
						... 
						
						
						
						Now server-side code should always use CRandomGenerator::getDefault which is serialized in GH.
CGameState::getRandomGenerator should be only used from GS code and CPackForClient-based applyGs. 
						
						
					 
					
						2016-09-11 00:10:46 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						40003460ca 
					 
					
						
						
							
							Check if building's dependencies are allowed  
						
						
						
						
					 
					
						2016-09-10 19:38:49 +02:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						62abde6c46 
					 
					
						
						
							
							Prepare battle log for spell-cast on server side.  
						
						
						
						
					 
					
						2016-09-10 18:23:55 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						ca819b3cda 
					 
					
						
						
							
							CGHeroInstance::nextPrimarySkill: don't use GS RNG directly  
						
						... 
						
						
						
						Code used from both GS and CGameHandler. 
						
						
					 
					
						2016-09-09 23:16:42 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						85f49bc968 
					 
					
						
						
							
							CGHeroInstance::initArmy: don't use GS RNG. Get RNG through a ref  
						
						... 
						
						
						
						This function used by both server-side and gamestate so it's must use appropriate random source. 
						
						
					 
					
						2016-09-09 23:16:42 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						2ba3b20928 
					 
					
						
						
							
							Multiple changes to RNG usage to both client and server  
						
						... 
						
						
						
						Server should never use RNG from CGameState directly.
Instead server get's own RNG that's state is secret for client. 
						
						
					 
					
						2016-09-09 23:16:42 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						02f70464fb 
					 
					
						
						
							
							Fix mismatched-tags Clang warnings  
						
						... 
						
						
						
						They're not important at all, but sicne there only few of them left just fix them. 
						
						
					 
					
						2016-09-08 19:42:59 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						a109580b91 
					 
					
						
						
							
							Use const for ObjectTemplate  
						
						
						
						
					 
					
						2016-09-08 18:06:28 +03:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						114dac7e81 
					 
					
						
						
							
							Added ObjectTemplate copy constructor and assignment operator  
						
						
						
						
					 
					
						2016-09-08 17:02:59 +03:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						044e2b9e51 
					 
					
						
						
							
							Properly calculate building requirements  
						
						... 
						
						
						
						In OH3 you can't build Capitol when Tavern is not builded.
In VCMI up to now you could. 
						
						
					 
					
						2016-08-30 22:15:24 +02:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						326be61ecb 
					 
					
						
						
							
							Show atrifact's name in message of Warrior's tomb  
						
						
						
						
					 
					
						2016-08-30 20:50:03 +02:00 
						 
				 
			
				
					
						
							
							
								Piotr Wójcik 
							
						 
					 
					
						
						
							
						
						52797082aa 
					 
					
						
						
							
							Do not show whether Shrine is visited by hero, if was not visited by player yet  
						
						
						
						
					 
					
						2016-08-30 20:48:03 +02:00 
						 
				 
			
				
					
						
							
							
								AlexVinS 
							
						 
					 
					
						
						
							
						
						c6d257f328 
					 
					
						
						
							
							Fixed CQuest leak  
						
						
						
						
					 
					
						2016-08-30 09:48:10 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						94bb5b9901 
					 
					
						
						
							
							CGKeys::wasMyColorVisited: fix to not change playerKeyMap on client  
						
						
						
						
					 
					
						2016-08-25 16:47:52 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						a90b657b86 
					 
					
						
						
							
							Add reset to some static variables on client  
						
						
						
						
					 
					
						2016-08-25 15:52:20 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						355f0a74ab 
					 
					
						
						
							
							CGSeerHut: add initialization to constructor  
						
						
						
						
					 
					
						2016-08-23 01:19:03 +03:00 
						 
				 
			
				
					
						
							
							
								Arseniy Shestakov 
							
						 
					 
					
						
						
							
						
						52e660f087 
					 
					
						
						
							
							CQuest: add proper constructor to avoid uninitialized fields  
						
						
						
						
					 
					
						2016-08-22 20:41:37 +03:00