Piston fix: Adjust colour and prevent piston from pushing too far when there's empty space
This commit is contained in:
parent
12e3802bf4
commit
631e49b8b7
@ -4,9 +4,9 @@ Element_FRME::Element_FRME()
|
||||
{
|
||||
Identifier = "DEFAULT_PT_FRME";
|
||||
Name = "FRME";
|
||||
Colour = PIXPACK(0xBBDD50);
|
||||
Colour = PIXPACK(0x999988);
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
Advection = 0.0f;
|
||||
@ -22,7 +22,7 @@ Element_FRME::Element_FRME()
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
Hardness = 0;
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
@ -4,9 +4,9 @@ Element_PSTN::Element_PSTN()
|
||||
{
|
||||
Identifier = "DEFAULT_PT_PSTN";
|
||||
Name = "PSTN";
|
||||
Colour = PIXPACK(0xBBFF00);
|
||||
Colour = PIXPACK(0xAA9999);
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
Advection = 0.0f;
|
||||
@ -22,7 +22,7 @@ Element_PSTN::Element_PSTN()
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
Hardness = 0;
|
||||
|
||||
Weight = 100;
|
||||
|
||||
@ -229,6 +229,8 @@ int Element_PSTN::MoveStack(Simulation * sim, int stackX, int stackY, int direct
|
||||
if(!r) {
|
||||
spaces++;
|
||||
tempParts[currentPos++] = 0;
|
||||
if(spaces >= amount)
|
||||
break;
|
||||
} else {
|
||||
foundParts = true;
|
||||
if(currentPos < size)
|
||||
|
Loading…
Reference in New Issue
Block a user