mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 00:26:45 +00:00 
			
		
		
		
	Another fix for trade exploit (hopefully the last: Fixes #1408)
This commit is contained in:
		
							parent
							
								
									f3cece8dec
								
							
						
					
					
						commit
						9627146bf4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -345,7 +345,7 @@ namespace MWGui
 | 
			
		|||
                x += abs(int(npcTerm - pcTerm));
 | 
			
		||||
 | 
			
		||||
            int roll = std::rand()%100 + 1;
 | 
			
		||||
            if(roll > x) //trade refused
 | 
			
		||||
            if(roll > x || (mCurrentMerchantOffer < 0) != (mCurrentBalance < 0)) //trade refused
 | 
			
		||||
            {
 | 
			
		||||
                MWBase::Environment::get().getWindowManager()->
 | 
			
		||||
                    messageBox("#{sNotifyMessage9}");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue