From ba962d68a6983163fc5b427cb277614462ac4e16 Mon Sep 17 00:00:00 2001 From: Paul Broadhead Date: Sun, 27 Oct 2024 13:38:03 +0000 Subject: [PATCH] Fix selecting players and npc on Android. Restores Android specifc code lost in the actors locking rewrite. --- actors.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actors.c b/actors.c index fe4aeb87a..a312cc70e 100755 --- a/actors.c +++ b/actors.c @@ -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; }