Fixes records unintentionally referencing each other.

Because of the limitations of BYOND's bitwise operators (which affect both the old and new implementations of num2hex()), you cannot use numbers larger than 2^16 with that proc.
Manual port of https://github.com/PolarisSS13/Polaris/pull/430.
This commit is contained in:
PsiOmegaDelta
2015-12-05 09:25:56 +01:00
parent 828e07d3fa
commit da080df765
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
var/icon/side = new(get_id_photo(dummy), dir = WEST)
var/datum/data/record/G = new /datum/data/record()
G.fields["name"] = "New Record"
G.fields["id"] = text("[]", add_zero(num2hex(rand(1, 1.6777215E7)), 6))
G.fields["id"] = generate_record_id()
G.fields["rank"] = "Unassigned"
G.fields["real_rank"] = "Unassigned"
G.fields["sex"] = "Male"