mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 19:34:01 +02:00
Fix rendering of built-in GOL in thumbnails
This commit is contained in:
@@ -57,11 +57,13 @@ static int graphics(GRAPHICS_FUNC_ARGS)
|
||||
colour1 = PIXPACK(0xFFFFFF);
|
||||
}
|
||||
auto ruleset = cpart->ctype;
|
||||
bool renderDeco = !ren->blackDecorations;
|
||||
if (ruleset >= 0 && ruleset < NGOL)
|
||||
{
|
||||
ruleset = builtinGol[ruleset].ruleset;
|
||||
renderDeco = true;
|
||||
}
|
||||
if (!ren->blackDecorations)
|
||||
if (renderDeco)
|
||||
{
|
||||
auto states = ((ruleset >> 17) & 0xF) + 2;
|
||||
if (states == 2)
|
||||
|
Reference in New Issue
Block a user