Fix white LIFE being created in some cases, such as from EXOT+NEUT

The default for v is -1, which gets interpreted as a GoL rule with all bits set. Now, it will default to builtin-type GOL when v is -1.
This commit is contained in:
jacob1 2022-12-29 23:56:30 -05:00
parent 1ffc2055ca
commit 4907b84a84
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -91,6 +91,8 @@ static int graphics(GRAPHICS_FUNC_ARGS)
static void create(ELEMENT_CREATE_FUNC_ARGS) static void create(ELEMENT_CREATE_FUNC_ARGS)
{ {
if (v == -1)
v = 0;
// * 0x200000: No need to look for colours, they'll be set later anyway. // * 0x200000: No need to look for colours, they'll be set later anyway.
bool skipLookup = v & 0x200000; bool skipLookup = v & 0x200000;
v &= 0x1FFFFF; v &= 0x1FFFFF;