[Fix] Autonav won't be interrupted once you start your hyperspace drive
now.
This commit is contained in:
		
							parent
							
								
									03b53b5b7c
								
							
						
					
					
						commit
						8fb96809ca
					
				| @ -432,7 +432,9 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter, | ||||
|   /* Calculate the damage. */ | ||||
|   outfit_calcDamage(&damage_shield, &damage_armour, &knockback,  dtype, damage); | ||||
| 
 | ||||
|   if(p->id == PLAYER_ID) | ||||
|   if((p->id == PLAYER_ID) && | ||||
|       !pilot_isFlag(player, PILOT_HYP_BEGIN) && | ||||
|       !pilot_isFlag(player, PILOT_HYPERSPACE)) | ||||
|   	player_abortAutonav("Sustaining Damage"); | ||||
| 
 | ||||
|   if(p->shield - damage_shield > 0.) { /* Shields take the whole blow. */ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis