mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Merge pull request #5471 from Crazylemon64/vv_list_fix
Reverts to the simpler VV list checker
This commit is contained in:
@@ -384,16 +384,9 @@ body
|
||||
html += "</ol>"
|
||||
else
|
||||
html += "<ul>"
|
||||
// First loop to check for associativity
|
||||
var/associative = FALSE
|
||||
for(var/entry in L)
|
||||
if(!(isnum(entry) || isnull(L[entry])))
|
||||
associative = TRUE
|
||||
break
|
||||
// then we do it again! Except now with knowledge of associativity
|
||||
var/index = 1
|
||||
for(var/entry in L)
|
||||
if(associative)
|
||||
if(istext(entry))
|
||||
html += debug_variable(entry, L[entry], level + 1)
|
||||
else
|
||||
html += debug_variable(index, L[index], level + 1)
|
||||
|
||||
Reference in New Issue
Block a user