make GIDL targets damagable by AI (#1464)

The no-friendly-fire effect also protected the targets from being damaged by AI.
shapetextures
David Dormagen 2015-12-02 13:03:51 +01:00
parent 178a91f338
commit fdeccdf83d
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ func StartGame()
func Object_NoPlayerDamage(object target, fx, dmg, cause, cause_player)
{
// players can't damage statue or doors
if (cause_player>=0) return 0;
if (GetPlayerType(cause_player) == C4PT_User) return 0;
return dmg;
}