mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 23:26:43 +00:00 
			
		
		
		
	[Client] Remove previous placeholders for tracking ActiveSpells actors
This commit is contained in:
		
							parent
							
								
									c027862609
								
							
						
					
					
						commit
						f03a87df3c
					
				
					 3 changed files with 0 additions and 46 deletions
				
			
		|  | @ -2143,16 +2143,6 @@ namespace MWMechanics | |||
|                     End of tes3mp change (major) | ||||
|                 */ | ||||
| 
 | ||||
|                 /*
 | ||||
|                     Start of tes3mp addition | ||||
| 
 | ||||
|                     Store the current actor's Ptr so it can be retrieved from inside ActiveSpells for | ||||
|                     multiplayer logic purposes | ||||
|                 */ | ||||
|                 MechanicsHelper::storeCurrentActor(iter->first); | ||||
|                 /*
 | ||||
|                     End of tes3mp addition | ||||
|                 */ | ||||
|                 iter->first.getClass().getCreatureStats(iter->first).getActiveSpells().update(duration); | ||||
| 
 | ||||
|                 const Misc::TimerStatus engageCombatTimerStatus = iter->second->updateEngageCombatTimer(duration); | ||||
|  | @ -2555,16 +2545,6 @@ namespace MWMechanics | |||
|         { | ||||
|             if (iter->first.getClass().getCreatureStats(iter->first).isDead()) | ||||
|             { | ||||
|                 /*
 | ||||
|                     Start of tes3mp addition | ||||
| 
 | ||||
|                     Store the current actor's Ptr so it can be retrieved from inside ActiveSpells for | ||||
|                     multiplayer logic purposes | ||||
|                 */ | ||||
|                 MechanicsHelper::storeCurrentActor(iter->first); | ||||
|                 /*
 | ||||
|                     End of tes3mp addition | ||||
|                 */ | ||||
|                 iter->first.getClass().getCreatureStats(iter->first).getActiveSpells().update(duration); | ||||
|                 continue; | ||||
|             } | ||||
|  | @ -2584,17 +2564,6 @@ namespace MWMechanics | |||
|             if (iter->first.getClass().isNpc()) | ||||
|                 calculateNpcStatModifiers(iter->first, duration); | ||||
| 
 | ||||
|                 /*
 | ||||
|                     Start of tes3mp addition | ||||
| 
 | ||||
|                     Store the current actor's Ptr so it can be retrieved from inside ActiveSpells for | ||||
|                     multiplayer logic purposes | ||||
|                 */ | ||||
|                 MechanicsHelper::storeCurrentActor(iter->first); | ||||
|                 /*
 | ||||
|                     End of tes3mp addition | ||||
|                 */ | ||||
| 
 | ||||
|             iter->first.getClass().getCreatureStats(iter->first).getActiveSpells().update(duration); | ||||
| 
 | ||||
|             MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(iter->first); | ||||
|  |  | |||
|  | @ -628,13 +628,3 @@ MWWorld::Ptr MechanicsHelper::getItemPtrFromStore(const mwmp::Item& item, MWWorl | |||
| 
 | ||||
|     return closestPtr; | ||||
| } | ||||
| 
 | ||||
| MWWorld::Ptr MechanicsHelper::getCurrentActor() | ||||
| { | ||||
|     return currentActor; | ||||
| } | ||||
| 
 | ||||
| void MechanicsHelper::storeCurrentActor(const MWWorld::Ptr& actor) | ||||
| { | ||||
|     currentActor = actor; | ||||
| } | ||||
|  |  | |||
|  | @ -50,11 +50,6 @@ namespace MechanicsHelper | |||
|     void unequipItemsByEffect(const MWWorld::Ptr& ptr, short enchantmentType, short effectId, short attributeId = -1, short skillId = -1); | ||||
| 
 | ||||
|     MWWorld::Ptr getItemPtrFromStore(const mwmp::Item& item, MWWorld::ContainerStore& store); | ||||
| 
 | ||||
|     MWWorld::Ptr getCurrentActor(); | ||||
|     void storeCurrentActor(const MWWorld::Ptr& actor); | ||||
| 
 | ||||
|     static MWWorld::Ptr currentActor; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue