… | |
… | |
771 | tmp->attack_movement = 0; |
771 | tmp->attack_movement = 0; |
772 | /* lots of checks here, but want to make sure we don't |
772 | /* lots of checks here, but want to make sure we don't |
773 | * dereference a null value |
773 | * dereference a null value |
774 | */ |
774 | */ |
775 | if (tmp->type == GOLEM && tmp->owner && tmp->owner->type == PLAYER && tmp->owner->contr->ranges[range_golem] == tmp) |
775 | if (tmp->type == GOLEM && tmp->owner && tmp->owner->type == PLAYER && tmp->owner->contr->ranges[range_golem] == tmp) |
776 | { |
|
|
777 | tmp->owner->contr->ranges[range_golem] = NULL; |
776 | tmp->owner->contr->ranges[range_golem] = 0; |
778 | tmp->owner->contr->golem_count = 0; |
777 | |
779 | } |
|
|
780 | tmp->owner = 0; |
778 | tmp->owner = 0; |
781 | } |
779 | } |
782 | break; |
780 | break; |
783 | case 1: /* angry -- get neutral monsters mad */ |
781 | case 1: /* angry -- get neutral monsters mad */ |
784 | if (QUERY_FLAG (tmp, FLAG_UNAGGRESSIVE) && !QUERY_FLAG (tmp, FLAG_FRIENDLY)) |
782 | if (QUERY_FLAG (tmp, FLAG_UNAGGRESSIVE) && !QUERY_FLAG (tmp, FLAG_FRIENDLY)) |