Files
CHOMPStation2/code/modules/xenobio2/controller.dm
Abbie Fland 78a1781c8f Fixes rare empty gene_mask
Gene masks (like for plant genes) used unpadded num2hex on a random
number 0-255. This had the (technically ok) result of masks for values
1-15 being a single character but also had the (not ok) result of the
mask for value 0 being the empty string. This only happened to 1/256 of
genes, so was easy to miss.

This change pads all of them to 2 characters so this issue won't happen
and to line things up nice.
2018-01-21 23:59:37 +00:00

1.3 KiB