From c7f7ff55447f51a6f64abdb98310906a9fa7d0a2 Mon Sep 17 00:00:00 2001 From: Segrain Date: Fri, 23 Jun 2023 10:05:09 +0400 Subject: [PATCH 1/2] Fix for dummy rotation in character setup. --- code/_onclick/other_mobs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/other_mobs.dm b/code/_onclick/other_mobs.dm index a8ed20f5c4b3..9c9784286d09 100644 --- a/code/_onclick/other_mobs.dm +++ b/code/_onclick/other_mobs.dm @@ -34,4 +34,4 @@ Have no reason to click on anything at all. */ /mob/new_player/click() - return 1 + return From a9ab0c71973581c3ae621addc3c59120bdba337d Mon Sep 17 00:00:00 2001 From: Segrain Date: Fri, 23 Jun 2023 10:23:34 +0400 Subject: [PATCH 2/2] Code clarity. --- code/_onclick/click.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index ad2f305790d2..affbc28cdd45 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -71,7 +71,9 @@ return // Click handled elsewhere. (These clicks are not affected by the next_move cooldown) - if (click(A, mods) || A.clicked(src, mods, location, params)) + if(click(A, mods)) + return + if(A.clicked(src, mods, location, params)) return // Default click functions from here on.