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)
+2 -1
View File
@@ -793,7 +793,8 @@
var/iterable = 0
for(var/datum/antagonist/role in subject.mind.antag_datums)
special_role_description += "[role.name]"
if(++iterable != length(subject.mind.antag_datums))
iterable++
if(iterable != length(subject.mind.antag_datums))
special_role_description += ", "
special_role_description += "</b></font>"
else
+2 -1
View File
@@ -785,7 +785,8 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null
if(v == "#null")
SDQL_expression(d, set_list[sets])
break
if(++i == sets.len)
i++
if(i == sets.len)
if(superuser)
if(temp.vars.Find(v))
temp.vars[v] = SDQL_expression(d, set_list[sets])