mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 20:04: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);
|
colour1 = PIXPACK(0xFFFFFF);
|
||||||
}
|
}
|
||||||
auto ruleset = cpart->ctype;
|
auto ruleset = cpart->ctype;
|
||||||
|
bool renderDeco = !ren->blackDecorations;
|
||||||
if (ruleset >= 0 && ruleset < NGOL)
|
if (ruleset >= 0 && ruleset < NGOL)
|
||||||
{
|
{
|
||||||
ruleset = builtinGol[ruleset].ruleset;
|
ruleset = builtinGol[ruleset].ruleset;
|
||||||
|
renderDeco = true;
|
||||||
}
|
}
|
||||||
if (!ren->blackDecorations)
|
if (renderDeco)
|
||||||
{
|
{
|
||||||
auto states = ((ruleset >> 17) & 0xF) + 2;
|
auto states = ((ruleset >> 17) & 0xF) + 2;
|
||||||
if (states == 2)
|
if (states == 2)
|
||||||
|
Reference in New Issue
Block a user