mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	* Client is able to await for answers for multiple queries at the same time
* Hackish solution allowing AI undertaking actions from event-handling thread * Fixed crash when death stare or acid breath activated on stack that was just killed * minor fixes
This commit is contained in:
		| @@ -240,11 +240,11 @@ CPack * CConnection::retreivePack() | ||||
| 	return ret; | ||||
| } | ||||
|  | ||||
| void CConnection::sendPackToServer(const CPack &pack, ui8 player) | ||||
| void CConnection::sendPackToServer(const CPack &pack, ui8 player, ui32 requestID) | ||||
| { | ||||
| 	boost::unique_lock<boost::mutex> lock(*wmx); | ||||
| 	tlog5 << "Sending to server a pack of type " << typeid(pack).name() << std::endl; | ||||
| 	*this << player << &pack; //packs has to be sent as polymorphic pointers! | ||||
| 	*this << player << requestID << &pack; //packs has to be sent as polymorphic pointers! | ||||
| } | ||||
|  | ||||
| CSaveFile::CSaveFile( const std::string &fname ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user