mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
- fixed: non-damaging attacks should not cause infighting, unless some relevant pain flags are being set.
This commit is contained in:
parent
89b7cf4262
commit
2ce55e5416
2 changed files with 2 additions and 2 deletions
|
@ -1573,7 +1573,7 @@ static bool C_HandleKey (event_t *ev, FCommandBuffer &buffer)
|
|||
static TArray<char> command;
|
||||
const size_t length = buffer.Text.Len();
|
||||
|
||||
command.Resize(length + 1);
|
||||
command.Resize(unsigned(length + 1));
|
||||
memcpy(&command[0], buffer.Text.GetChars(), length);
|
||||
command[length] = '\0';
|
||||
|
||||
|
|
|
@ -1545,7 +1545,7 @@ dopain:
|
|||
target->SetState (target->SeeState);
|
||||
}
|
||||
}
|
||||
else if (source != target->target && target->OkayToSwitchTarget (source))
|
||||
else if ((damage > 0 || fakedPain) && source != target->target && target->OkayToSwitchTarget (source))
|
||||
{
|
||||
// Target actor is not intent on another actor,
|
||||
// so make him chase after source
|
||||
|
|
Loading…
Reference in a new issue