From f4813a51c708cb8e4a4e0b8b7a85c00e1f8eade7 Mon Sep 17 00:00:00 2001 From: SomeSortaSquid <20936555+SomeSortaSquid@users.noreply.github.com> Date: Fri, 16 Aug 2019 22:29:06 +0200 Subject: [PATCH] Update client procs.dm I can't explain exactly why, but switch() responsible for choosing karma_purchase() are parts of an infinite loop I couldn't locate. Return statements break that loop. As far as I can tell, it's not causing any other issues. --- code/modules/client/client procs.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 95f6c16ba97..14801161c6b 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -127,6 +127,7 @@ karma_purchase(karma,45,"job","Magistrate") if("9") karma_purchase(karma,30,"job","Security Pod Pilot") + return if(href_list["KarmaBuy2"]) var/karma=verify_karma() if(isnull(karma)) //Doesn't display anything if karma database is down. @@ -146,6 +147,7 @@ karma_purchase(karma,100,"species","Plasmaman") if("7") karma_purchase(karma,30,"species","Drask") + return if(href_list["KarmaRefund"]) var/type = href_list["KarmaRefundType"] var/job = href_list["KarmaRefund"]