Skip to content

Commit

Permalink
Fix selecting players and npc on Android.
Browse files Browse the repository at this point in the history
Restores Android specifc code lost in the actors locking
rewrite.
  • Loading branch information
pjbroad committed Oct 27, 2024
1 parent a2ba868 commit ba962d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,11 @@ static void check_actor_in_range(actor *act, actor *attached, void* data,

act->max_z = act->bbox.bbmax[Z];

#ifdef ANDROID
if ((get_cur_intersect_type(main_bbox_tree) == INTERSECTION_TYPE_DEFAULT))
#else
if (read_mouse_now && (get_cur_intersect_type(main_bbox_tree) == INTERSECTION_TYPE_DEFAULT))
#endif
{
near_actors[no_near_actors].select = 1;
}
Expand Down

0 comments on commit ba962d6

Please sign in to comment.