Removes ++ and -- in conditionals (#71925)

This commit is contained in:
Time-Green
2022-12-12 11:02:57 -08:00
committed by GitHub
parent 965e1f3d59
commit ddf453a170
15 changed files with 34 additions and 17 deletions
+2 -1
View File
@@ -208,7 +208,8 @@ GLOBAL_PROTECT(LastAdminCalledProc)
GLOB.AdminProcCaller = user_identifier //if this runtimes, too bad for you
++GLOB.AdminProcCallCount
. = world.WrapAdminProcCall(target, procname, arguments)
if(--GLOB.AdminProcCallCount == 0)
GLOB.AdminProcCallCount--
if(GLOB.AdminProcCallCount == 0)
GLOB.AdminProcCaller = null
else
. = world.WrapAdminProcCall(target, procname, arguments)