Skip to content

Commit

Permalink
no focus, if player is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Jun 24, 2023
1 parent 5e0f858 commit ba27c66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/game/playercontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ Focus PlayerControl::findFocus(Focus* prev) {
auto w = Gothic::inst().world();
if(w==nullptr)
return Focus();
if(w->player()!=nullptr && w->player()->isDown())
return Focus();
if(!cacheFocus)
prev = nullptr;

Expand Down

0 comments on commit ba27c66

Please sign in to comment.