mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
fix stasis wall not having any blob mode effects
This commit is contained in:
@@ -869,21 +869,22 @@ void Renderer::DrawWalls()
|
|||||||
switch (sim->wtypes[wt].drawstyle)
|
switch (sim->wtypes[wt].drawstyle)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (wt == WL_EWALL)
|
if (wt == WL_EWALL || wt == WL_STASIS)
|
||||||
{
|
{
|
||||||
if (powered)
|
bool reverse = wt == WL_STASIS;
|
||||||
|
if ((powered>0) ^ reverse)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < CELL; j++)
|
for (int j = 0; j < CELL; j++)
|
||||||
for (int i =0; i < CELL; i++)
|
for (int i =0; i < CELL; i++)
|
||||||
if (i&j&1)
|
if (i&j&1)
|
||||||
drawblob((x*CELL+i), (y*CELL+j), 0x80, 0x80, 0x80);
|
drawblob((x*CELL+i), (y*CELL+j), PIXR(pc), PIXG(pc), PIXB(pc));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (int j = 0; j < CELL; j++)
|
for (int j = 0; j < CELL; j++)
|
||||||
for (int i = 0; i < CELL; i++)
|
for (int i = 0; i < CELL; i++)
|
||||||
if (!(i&j&1))
|
if (!(i&j&1))
|
||||||
drawblob((x*CELL+i), (y*CELL+j), 0x80, 0x80, 0x80);
|
drawblob((x*CELL+i), (y*CELL+j), PIXR(pc), PIXG(pc), PIXB(pc));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wt == WL_WALLELEC)
|
else if (wt == WL_WALLELEC)
|
||||||
|
Reference in New Issue
Block a user