mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 15:56:42 +00:00 
			
		
		
		
	Add check for region weather chances to verifier.
This commit is contained in:
		
							parent
							
								
									9a495042cc
								
							
						
					
					
						commit
						94d4fb0686
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -33,5 +33,12 @@ void CSMTools::RegionCheckStage::perform (int stage, CSMDoc::Messages& messages) | |||
| 
 | ||||
|     /// \todo test that the ID in mSleeplist exists
 | ||||
| 
 | ||||
|     // test that chances add up to 100
 | ||||
|     int chances = region.mData.mClear + region.mData.mCloudy + region.mData.mFoggy + region.mData.mOvercast + | ||||
|         region.mData.mRain + region.mData.mThunder + region.mData.mAsh + region.mData.mBlight + | ||||
|         region.mData.mA + region.mData.mB; | ||||
|     if (chances != 100) | ||||
|         messages.add(id, "Weather chances do not add up to 100", "", CSMDoc::Message::Severity_Error); | ||||
| 
 | ||||
|     /// \todo check data members that can't be edited in the table view
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue