mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	added test for cell name
This commit is contained in:
		
							parent
							
								
									9d25e74a05
								
							
						
					
					
						commit
						a25c7bb2c0
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -21,7 +21,12 @@ namespace MWDialogue | |||
|         // TODO check actor class
 | ||||
|         // TODO check actor faction
 | ||||
|         // TODO check player faction
 | ||||
|         // TODO check cell
 | ||||
| 
 | ||||
|         // check cell
 | ||||
|         if (!info.cell.empty()) | ||||
|             if (mEnvironment.mWorld->getPlayerPos().getPlayer().getCell()->cell->name != info.cell) | ||||
|                 return false; | ||||
| 
 | ||||
|         // TODO check DATAstruct
 | ||||
|         // TODO check select structures
 | ||||
| 
 | ||||
|  | @ -32,7 +37,6 @@ namespace MWDialogue | |||
|             << "    actor class: " << info.clas << std::endl | ||||
|             << "    actor faction: " << info.npcFaction << std::endl | ||||
|             << "    player faction: " << info.pcFaction << std::endl | ||||
|             << "    cell: " << info.cell << std::endl | ||||
|             << "    DATAstruct" << std::endl; | ||||
| 
 | ||||
|         for (std::vector<ESM::DialInfo::SelectStruct>::const_iterator iter (info.selects.begin()); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue